Safe Haskell | None |
---|
- class Distribution dist dp prob | dist -> dp where
- pdf :: dist -> dp -> prob
Documentation
class Distribution dist dp prob | dist -> dp whereSource
We use the same class for both discrete and continuous distributions. Unfortunately, we cannot use the type classes from the statistics
package because we require more generalilty.
(Ord prob, Fractional prob, Unbox prob) => Distribution (KDE prob) prob prob | |
(Ord label, Ord prob, Floating prob, Random prob) => Distribution (Categorical label prob) label prob |