Package

purescript-information

Repository
pseudonom/purescript-information
License
AGPL-3.0
Uploaded by
pseudonom
Published on
2018-02-05T20:22:26Z

Module Math.Probability.Information

Entropy

newtype Entropy
  = Entropy Number

selfInformation

selfInformation :: Prob -> Entropy

entropy

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

pointwiseInformation

pointwiseInformation :: Prob -> Prob -> Prob -> Entropy

mutualInformation

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

divergence

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

nonCond

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

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

eqEnt

instance eqEnt :: Eq Entropy

ordEnt

instance ordEnt :: Ord Entropy

showEnt

instance showEnt :: Show Entropy