Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Hypergeometric function not working correctly

$
0
0
There was a fix on the hyper-geometric CDF semantics in the v3 branch, so if it had been originally intended (or simply was a bug), it is no more.

With the current v3.0.0-beta01:
var hyper = new MathNet.Numerics.Distributions.Hypergeometric(30,15,10);
hyper.CumulativeDistribution(3); // returns 0.122538730634683
hyper.Probability(3).Dump(); // returns 0.0974512743628186
Can you upgrade to a v3 pre-release? There are plans to backport most fixes from v3 back to a v2 update, but I can't give any date on that.

Btw, with v3 you can also do:
Hypergeometric.CDF(30,15,10,3);
Hypergeometric.PMF(30,15,10,3);
Thanks,
Christoph

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>