From bfee68d10f7fae1b30a1453b290deea036adbcba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 13 Aug 2019 17:18:16 +0200 Subject: [PATCH] [apps/proba] Fix precision in chi squared law To pass the tests --- apps/probability/law/chi_squared_law.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/probability/law/chi_squared_law.h b/apps/probability/law/chi_squared_law.h index 0edd0c666..5ee3c2d3c 100644 --- a/apps/probability/law/chi_squared_law.h +++ b/apps/probability/law/chi_squared_law.h @@ -9,7 +9,7 @@ namespace Probability { class ChiSquaredLaw : public OneParameterLaw { public: static constexpr int k_maxRegularizedGammaIterations = 1000; - static constexpr double k_regularizedGammaPrecision = DBL_EPSILON; + static constexpr double k_regularizedGammaPrecision = FLT_EPSILON; ChiSquaredLaw() : OneParameterLaw(1.0f) {} I18n::Message title() override { return I18n::Message::ChiSquaredLaw; }