Module

Math.Probability.Information

Package
purescript-information
Repository
colehaus/purescript-information

#Dist' Source

type Dist' = Dist Prob

#selfInformation Source

#entropy Source

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

#pointwiseInformation Source

#mutualInformation Source

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

#divergence Source

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

#nonCond Source

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

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