[apps/proba] Fix precision in chi squared law

To pass the tests
This commit is contained in:
Léa Saviot
2019-08-13 17:18:16 +02:00
parent 6b25cd1712
commit bfee68d10f

View File

@@ -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; }