X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftimeman.cpp;h=fc2a327df253528a77ce9f80f1b286728124f93d;hb=92faa74dfa862fbdef409017a4ccd993c549f723;hp=81c2f39b77e4d40eaff30c57dadeeda6f4f2b1be;hpb=c5d478b92303314da0ea072640ee0214ca160199;p=stockfish diff --git a/src/timeman.cpp b/src/timeman.cpp index 81c2f39b..fc2a327d 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -34,8 +34,6 @@ namespace { const double xscale = 9.3; const double xshift = 59.8; - const double yscale = 7780; - const double yshift = 1e-3; // Larger than 0. Ensures a non-zero importance const double skewfactor = 0.172; @@ -46,7 +44,7 @@ namespace { double move_importance(int ply) { - return yscale / pow((1 + exp((ply - xshift) / xscale)), skewfactor) + yshift; + return 1 / pow((1 + exp((ply - xshift) / xscale)), skewfactor) + 1e-3; // Ensure non-zero }