mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Simplify move_importance(): take 3
Use pow() of a negative number instead of 1/x No functional change.
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ namespace {
|
|||||||
|
|
||||||
double move_importance(int ply) {
|
double move_importance(int ply) {
|
||||||
|
|
||||||
return 1 / pow((1 + exp((ply - xshift) / xscale)), skewfactor);
|
return pow((1 + exp((ply - xshift) / xscale)), -skewfactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user