mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 00:00:44 +01:00
[apps/proba] Fix Student distribution root search bracket
This commit is contained in:
@@ -44,7 +44,8 @@ double StudentLaw::cumulativeDistributiveInverseForProbability(double * probabil
|
||||
return 0.0;
|
||||
}
|
||||
const double small = DBL_EPSILON;
|
||||
const double big = m_parameter1 >= 1 ? 50.0 : 50 / m_parameter1;
|
||||
const double standardBig = 10000.0;
|
||||
const double big = m_parameter1 >= 1 ? standardBig : standardBig / m_parameter1;
|
||||
double xmin = *probability < 0.5 ? -big : small;
|
||||
double xmax = *probability < 0.5 ? -small : big;
|
||||
return cumulativeDistributiveInverseForProbabilityUsingBrentRoots(probability, xmin, xmax);
|
||||
|
||||
Reference in New Issue
Block a user