projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(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 013d5f462f75e2e010a14fedd5aff7ae4c8e4b22..5e9304d5c15a4385752a7ec48c96ad98283e415a 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);
}