HLearn-distributions-0.0.1.3: Distributions for use with the HLearn library

Safe HaskellNone

HLearn.Models.Distributions.Common

Synopsis

Documentation

class Distribution dist sample prob | dist -> sample 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.

Methods

pdf :: dist -> sample -> probSource

cdf :: dist -> sample -> probSource

cdfInverse :: dist -> prob -> sampleSource

Instances

Distribution (Gaussian Double) Double Double 
(Ord label, Ord prob, Floating prob, Random prob) => Distribution (Categorical label prob) label prob