mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare/normal_distribution] More values are computed
We limited the precision too much before.
This commit is contained in:
committed by
EmilieNumworks
parent
480459ab19
commit
bbb8308a6d
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user