Module
Statistics.Distribution
- Package
- purescript-stats
- Repository
- klangner/purescript-stats
Type classes for probability distributions
#Distribution Source
class Distribution d where
Type class common to all distributions. Only c.d.f. could be defined for both discrete and continous distributions.
Members
cumulative :: d -> Number -> Number
complCumulative :: d -> Number -> Number
#DiscreteDistr Source
class (Distribution d) <= DiscreteDistr d where
Discrete probability distribution.
Members
probability :: d -> Int -> Number
logProbability :: d -> Int -> Number
#ContDistr Source
class (Distribution d) <= ContDistr d where
Continuous probability distributuion. Minimal complete definition is 'quantile' and either 'density' or 'logDensity'.