This commit is contained in:
Léa Saviot
2018-12-13 14:29:54 +01:00
committed by EmilieNumworks
parent 42cdf95e9f
commit af1066f16e

View File

@@ -27,7 +27,7 @@ void assert_regression_is(double * xi, double * yi, int numberOfPoints, Model::T
// Compute the coefficients
double * coefficients = store.coefficientsForSeries(series, &context);
// Comapre the coefficients
// Compare the coefficients
int numberOfCoefs = store.modelForSeries(series)->numberOfCoefficients();
for (int i = 0; i < numberOfCoefs; i++) {
quiz_assert(std::fabs(coefficients[i] - trueCoefficients[i]) < precision);