http://www.perlmonks.org?node_id=167269


in reply to Re: Front Page with Negative Rep..
in thread Front Page with Negative Rep..

There is an option in the Everything software to show the number of ++ votes and -- votes separately, instead of just the aggregate score you currently get on Perlmonks.

Should we go for this? what do people think?

Replies are listed 'Best First'.
Re: Re: Re: Front Page with Negative Rep..
by mojotoad (Monsignor) on May 17, 2002 at 16:44 UTC
    Well the nice thing about "tension" is that it would measure the magnitude of active indecisiveness without revealing the actual vote count; this way you could get feedback prior to voting or considering without revealing the raw votes.

    Examples:

    ++-- Total vote tension
    100595low
    1055low
    5100-95low
    550low
    1001000high
    20200medium
    502030medium-high

    Another phrase for "tension" would be "high interest, controversial".

    Matt

    Update: grammar, clarity tweaks

Perlish Tension
by giulienk (Curate) on May 17, 2002 at 23:53 UTC
    Here is a possible implementation of the <tension> parameter.
    #!/usr/bin/perl use strict; my $plus = shift; my $minus = shift; my $sum = $plus + $minus; my $rep = $plus - $minus; my $mean = $rep / $sum; #ALERT: semi-empirical formulae ahead my $tension = (1 - $mean ** 2) * $sum * 2 / (2 - 1 / (1 + abs $rep)); $tension = log (1 + $tension) - 2; my $literal; for ($tension) { $_ <= 0 and $literal = 'no', last; $_ <= 1 and $literal = 'low', last; $_ <= 2 and $literal = 'medium', last; $literal = 'high'; } printf <<"EOF", $plus, $minus, $rep, $tension, $literal; Plus = %3d Minus = %3d Reputation = %3d Tension = %.3f There is %s tension on this post. EOF


     


    $|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g