From: Steinar H. Gunderson Date: Thu, 22 Mar 2012 00:21:15 +0000 (+0100) Subject: Fix a leftover 1700 value in the README. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=b9f594c6d310024a0e0432787d27699655e1e163;p=wloh Fix a leftover 1700 value in the README. --- diff --git a/bayeswf.cpp b/bayeswf.cpp index f94b1d3..cab5afc 100644 --- a/bayeswf.cpp +++ b/bayeswf.cpp @@ -13,7 +13,7 @@ using namespace std; using namespace Eigen; -#define PRIOR_MU 1500 +#define PRIOR_MU 500 #define PRIOR_WEIGHT 1.0 #define MAX_PLAYERS 4096 #define DUMP_RAW 0 diff --git a/mcwordfeud.cpp b/mcwordfeud.cpp index 28a2a44..63b98e1 100644 --- a/mcwordfeud.cpp +++ b/mcwordfeud.cpp @@ -107,7 +107,7 @@ int main(int argc, char **argv) exit(1); } if (ret < 2) { - rating = 1500.0f; + rating = 500.0f; } players.push_back(buf); diff --git a/www/index.pl b/www/index.pl index ec7318a..5291632 100755 --- a/www/index.pl +++ b/www/index.pl @@ -61,7 +61,7 @@ EOF printf MCCALC "%d\n", scalar keys %players; for my $id (keys %players) { - my $rating = $used_ratings->{$id} // 1500.0; + my $rating = $used_ratings->{$id} // 500.0; printf MCCALC "%s %f\n", $id, $rating; } @@ -92,7 +92,7 @@ EOF chomp; my @x = split /\s+/; my $id = $x[0]; - my $player = sprintf "%s (%.0f ± %.0f)", $players{$id}, ($ratings{$id} // 1500.0), ($ratings_stddev{$id} // $parms{-3}); + my $player = sprintf "%s (%.0f ± %.0f)", $players{$id}, ($ratings{$id} // 500.0), ($ratings_stddev{$id} // $parms{-3}); $prob{$player} = [ @x[1..$#x] ]; } close MCCALC; diff --git a/www/norm3.png b/www/norm3.png index 105537b..e5dfc3f 100644 Binary files a/www/norm3.png and b/www/norm3.png differ diff --git a/www/rating.pl b/www/rating.pl index 89c75b9..d1ba945 100755 --- a/www/rating.pl +++ b/www/rating.pl @@ -66,7 +66,7 @@ printf <<"EOF", $params{-3}, $match_stddev;