in reply to Idea for another interesting node
For this a node with 10 ++ vote and 10 -- votes would get a score of 10, and a node with 10 ++ votes and no -- votes would get 0.
This code is a start. The $mult is used to keep nodes with only 2 votes from getting a score of 10.
The for loops just test the code over an arbitrary range.for my $p (0..15, 100) { for my $n (0 .. 15, 100) { next unless $p+$n; my $mult = 10 - ($p+$n) > 0 ? 10 - ($p+$n) : 10; print(10 - ($mult * (1 - abs($p-$n)/($p+$n))), " $p $n $mult\n"); } }
UPDATE: changed divisive to controversial. And added a note to the code and reduced its range.
See: Node Tension
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Idea for another interesting node
by graff (Chancellor) on Apr 03, 2005 at 02:13 UTC |