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

Safe HaskellNone

HLearn.Models.Distributions.Common

Synopsis

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.

Methods

pdf :: dist -> dp -> probSource

Instances

(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