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

HLearn.Models.Distributions.Multivariate.Internal.CatContainer

Description

The categorical distribution is used for discrete data. It is also sometimes called the discrete distribution or the multinomial distribution. For more, see the wikipedia entry: https://en.wikipedia.org/wiki/CatContainer_distribution

# Documentation

data CatContainer label basedist prob Source

Constructors

 CatContainer Fieldspdfmap :: !(Map label basedist) probmap :: !(Map label prob) catnumdp :: prob

Instances

 (Marginalize' (Nat1Box n) basedist, Monoid basedist, PDF (Margin' (Nat1Box n) basedist), ~ * prob (Probability (Margin' (Nat1Box n) basedist)), ~ * prob (Ring basedist), Module basedist, Ord label, Num prob) => Marginalize' (Nat1Box (Succ n)) (CatContainer label basedist prob) (NumDP basedist, ~ * (Ring basedist) prob, Monoid basedist, ~ * (HCons label (Datapoint basedist)) (HList (: * label ts)), Ord label) => Marginalize' (Nat1Box Zero) (CatContainer label basedist prob) (Eq label, Eq basedist, Eq prob) => Eq (CatContainer label basedist prob) (Ord label, Ord basedist, Ord prob) => Ord (CatContainer label basedist prob) (Ord label, Read label, Read basedist, Read prob) => Read (CatContainer label basedist prob) (Show label, Show basedist, Show prob) => Show (CatContainer label basedist prob) (Ord label, Num prob, Monoid basedist) => Monoid (CatContainer label basedist prob) Num prob => NumDP (CatContainer label basedist prob) (Ord label, Num prob, HomTrainer basedist, ~ * (Datapoint basedist) (HList ys)) => HomTrainer (CatContainer label basedist prob) Num prob => HasRing (CatContainer label basedist prob) (Ord label, Num prob, Module basedist, ~ * (Ring basedist) (Ring (CatContainer label basedist prob))) => Module (CatContainer label basedist prob) (Ord label, Num prob, Monoid basedist) => Abelian (CatContainer label basedist prob) (Ord label, Num prob, Group basedist) => Group (CatContainer label basedist prob) (NFData label, NFData prob, NFData basedist) => NFData (CatContainer label basedist prob) (Ord prob, Fractional prob, Show prob, ~ * (Probability basedist) prob, Ord label, PDF basedist, ~ * (Datapoint basedist) (HList ys), Show (Datapoint basedist), Show label) => PDF (CatContainer label basedist prob) Probabilistic (CatContainer label basedist prob) (MultivariateLabels datapoint, MarkovNetwork (Multivariate datapoint (: [* -> * -> *] ys xs) prob)) => MarkovNetwork (Multivariate datapoint (: [* -> * -> *] (: (* -> * -> *) (CatContainer label) ys) xs) prob)

ds :: [HList (: * [Char] (: * Char (: * [Char] ([] *))))]Source