[apps/proba] Student parameter maximum is 200

This commit is contained in:
Léa Saviot
2019-08-21 12:18:08 +02:00
parent 9759bd91d0
commit 06b3b2c892

View File

@@ -23,7 +23,7 @@ float StudentDistribution::evaluateAtAbscissa(float x) const {
}
bool StudentDistribution::authorizedValueAtIndex(float x, int index) const {
return x >= FLT_EPSILON;
return x >= FLT_EPSILON && x <= 200.0; // We cannot draw the curve for x > 200 (coefficient() is too small)
}
double StudentDistribution::cumulativeDistributiveFunctionAtAbscissa(double x) const {