Module

Math.Probability.Information

Package
purescript-information
Repository
pseudonom/purescript-information

#Entropy Source

#selfInformation Source

#entropy Source

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

#pointwiseInformation Source

#mutualInformation Source

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

#divergence Source

divergence :: forall z x. Eq 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.