mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 12:10:03 +02:00
[app/proba] Comment about computation error
This commit is contained in:
@@ -30,6 +30,9 @@ double StudentLaw::cumulativeDistributiveFunctionAtAbscissa(double x) const {
|
||||
if (x == 0) {
|
||||
return 0.5;
|
||||
}
|
||||
/* TODO There are some computation errors, where the probability falsly jumps to 1.
|
||||
* k = 0.001 and P(x < 42000000) (for 41000000 it is around 0.5)
|
||||
* k = 0.01 and P(x < 8400000) (for 41000000 it is around 0.6) */
|
||||
const float k = m_parameter1;
|
||||
const double sqrtXSquaredPlusK = std::sqrt(x*x + k);
|
||||
double t = (x + sqrtXSquaredPlusK) / (2.0 * sqrtXSquaredPlusK);
|
||||
|
||||
Reference in New Issue
Block a user