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