Skip to content
Snippets Groups Projects
Commit f773fd60 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

COMP: fix pow types for win32

parent 1bf977ec
No related branches found
No related tags found
No related merge requests found
...@@ -211,7 +211,7 @@ int testRegression(SampleGeneratorType& sg, RegressionType& rgrsn, RegressionTes ...@@ -211,7 +211,7 @@ int testRegression(SampleGeneratorType& sg, RegressionType& rgrsn, RegressionTes
//typename SampleGeneratorType::PrecisionType invalue = sampleIt.GetMeasurementVector()[0]; //typename SampleGeneratorType::PrecisionType invalue = sampleIt.GetMeasurementVector()[0];
typename SampleGeneratorType::PrecisionType prediction = rgrsn->Predict(sampleIt.GetMeasurementVector())[0]; typename SampleGeneratorType::PrecisionType prediction = rgrsn->Predict(sampleIt.GetMeasurementVector())[0];
typename SampleGeneratorType::PrecisionType expected = resultIt.GetMeasurementVector()[0]; typename SampleGeneratorType::PrecisionType expected = resultIt.GetMeasurementVector()[0];
rmse += pow(prediction - expected, 2.0); rmse += std::pow(prediction - expected, static_cast<PrecisionType>(2.0));
++sampleIt; ++sampleIt;
++resultIt; ++resultIt;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment