projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a795187
)
Simplify move_importance(): take 3
author
Marco Costalba
<mcostalba@gmail.com>
Wed, 1 Jan 2014 12:43:58 +0000 (13:43 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Wed, 1 Jan 2014 12:43:58 +0000 (13:43 +0100)
Use pow() of a negative number instead of 1/x
No functional change.
src/timeman.cpp
patch
|
blob
|
history
diff --git
a/src/timeman.cpp
b/src/timeman.cpp
index
013d5f4
..
5e9304d
100644
(file)
--- a/
src/timeman.cpp
+++ b/
src/timeman.cpp
@@
-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);
}