BioFSharp icon indicating copy to clipboard operation
BioFSharp copied to clipboard

[BUG] Hypergeometric Distribution CDF update will change input

Open Freymaurer opened this issue 3 years ago • 0 comments

Describe the bug Found that FSharp.Stats.Distributions.hypergeometric(..).CDF is float -> float, whereas the input k (the number of drawn success events) should be int, therefore int -> float.

Found here:

https://github.com/CSBiology/BioFSharp/blob/08618f777f36fb758bdb5b7a903622324fe6ba85/src/BioFSharp.Stats/OntologyEnrichment.fs#L88

Will be changed in FSharp.Stats somewhere in the future.

Freymaurer avatar Jun 23 '22 13:06 Freymaurer