[poincare/normal_distribution] More values are computed

We limited the precision too much before.
This commit is contained in:
Léa Saviot
2020-05-05 15:30:32 +02:00
committed by EmilieNumworks
parent 480459ab19
commit bbb8308a6d

View File

@@ -16,11 +16,11 @@ public:
* The result of the verification is *result. */
static bool ExpressionMuAndVarAreOK(bool * result, const Expression & mu, const Expression & sigma, Context * context);
private:
/* For the standard normal distribution, P(X < y) > 0.9999995 for y >= 4.892 so the
/* For the standard normal distribution, P(X < y) > 0.99999995 for y >= 5.33 so the
* value displayed is 1. But this is dependent on the fact that we display
* only 7 decimal values! */
static_assert(Preferences::LargeNumberOfSignificantDigits == 7, "k_boundStandardNormalDistribution is ill-defined compared to LargeNumberOfSignificantDigits");
constexpr static double k_boundStandardNormalDistribution = 4.892;
constexpr static double k_boundStandardNormalDistribution = 5.33;
template<typename T> static T StandardNormalCumulativeDistributiveFunctionAtAbscissa(T abscissa);
template<typename T> static T StandardNormalCumulativeDistributiveInverseForProbability(T probability);
};