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

Safe HaskellNone

HLearn.Models.Distributions.Common

Synopsis

Documentation

class Distribution dist dp prob | dist -> dp, dist -> prob 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 -> dp -> probSource

Instances

(Ord prob, Fractional prob, Unbox prob) => Distribution (KDE prob) prob prob 
(Ord label, Ord prob, Fractional prob, Random prob) => Distribution (Categorical label prob) label prob