From ad09c2c97e3e039c6ccf14d350bb57400d0deeff Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Sat, 7 May 2011 22:36:28 +0200 Subject: [PATCH] ENH: replace double index by integer --- Code/Markov/otbMRFEnergyFisherClassification.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/Markov/otbMRFEnergyFisherClassification.h b/Code/Markov/otbMRFEnergyFisherClassification.h index c534b6c0d0..dd4536b931 100644 --- a/Code/Markov/otbMRFEnergyFisherClassification.h +++ b/Code/Markov/otbMRFEnergyFisherClassification.h @@ -70,9 +70,9 @@ public: itkExceptionMacro(<<"Number of parameters does not correspond to number of classes" ); } double val1 = static_cast<double>(value1); - double mu = this->m_Parameters[3*static_cast<double>(value2)]; - double l = this->m_Parameters[3*static_cast<double>(value2)+1]; - double m = this->m_Parameters[3*static_cast<double>(value2)+2]; + double mu = this->m_Parameters[3*value2]; + double l = this->m_Parameters[3*value2+1]; + double m = this->m_Parameters[3*value2+2]; double result = -vcl_log((boost::math::tgamma(l+m)/(boost::math::tgamma(l)*boost::math::tgamma(m))) * (2/(mu)) * (vcl_sqrt(l/m)) * -- GitLab