mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 23:10:31 +03:00
fix sigma
This commit is contained in:
parent
c2dad9fceb
commit
fe8b09ab4b
@ -70,7 +70,7 @@ public:
|
||||
virtual void FinishedAdds(unsigned ruleCount) {
|
||||
//m_sigma = max(1.0f, sqrt(m_averageSquare - m_average*m_average));
|
||||
CHECK(ruleCount > 0);
|
||||
m_sigma=max(1.0f,sqrt(m_averageSquare - m_average*m_average+m_ISIk/(1+m_ISIk/ruleCount)*m_averageSquare));
|
||||
m_sigma=max(1.0f,sqrt(m_averageSquare - m_average*m_average+m_ISIk/(1+(float)m_ISIk/ruleCount)*m_averageSquare));
|
||||
m_logSigma = log(m_sigma);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user