From: beatles Date: Sun, 18 Feb 2007 01:54:07 +0000 (+0000) Subject: Fixed a typo error. X-Git-Tag: 20170902~338 X-Git-Url: http://git.sourceforge.jp/view?p=shogi-server%2Fshogi-server.git;a=commitdiff_plain;h=51c3be552bf3592bba207ba3bbc4deb26348f6ad Fixed a typo error. --- diff --git a/mk_rate b/mk_rate index 1c48c18..07736ac 100755 --- a/mk_rate +++ b/mk_rate @@ -531,12 +531,12 @@ end # Half-life effect # After NHAFE_LIFE days value will get half. # 0.693 is constant, where exp(0.693) ~ 0.5 -NHAFE_LIFE=60 +NHALF_LIFE=60 def half_life(days) if days < 7 return 1.0 else - Math::exp(-0.693/NHALFE_LIFE*(days-7)) + Math::exp(-0.693/NHALF_LIFE*(days-7)) end end