mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +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:
parent
a795187c50
commit
29e0d8caa7
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ namespace {
|
|||
|
||||
double move_importance(int ply) {
|
||||
|
||||
return 1 / pow((1 + exp((ply - xshift) / xscale)), skewfactor);
|
||||
return pow((1 + exp((ply - xshift) / xscale)), -skewfactor);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue