Module

Math.Probability.Information

Package
purescript-information
Repository
colehaus/purescript-information

#Dist' Source

type Dist' = Dist Prob

#selfInformation Source

#entropy Source

entropy :: forall x z. Ord x => Dist' z -> (z -> Dist' x) -> Entropy

#pointwiseInformation Source

#mutualInformation Source

mutualInformation :: forall j x y z. Eq x => Eq y => Ord j => Dist' z -> (z -> Dist' j) -> (j -> x) -> (j -> y) -> Entropy

#divergence Source

divergence :: forall x z. Ord x => Dist' z -> (z -> Dist' x) -> (z -> Dist' x) -> Entropy

#nonCond Source

nonCond :: forall b c. (Dist' Unit -> (Unit -> Dist' b) -> c) -> Dist' b -> c

Helper function for using entropy and mutualInformation with non-conditional distributions.