Module

Math.Probability.Dist

Package
purescript-probability
Repository
colehaus/purescript-probability

#isValid Source

isValid :: forall p f a. Bounded p => Semiring p => Foldable f => Functor f => Eq p => f (Tuple a p) -> Boolean

#make Source

make :: forall a p. Ord a => EuclideanRing p => NonEmpty Map a p -> Dist p a

#probs Source

probs :: forall a p. Ord a => Semiring p => Dist p a -> NonEmpty List p

#sum Source

sum :: forall f a p. Semiring p => Foldable f => Functor f => f (Tuple a p) -> p

#unmake Source

unmake :: forall a p. Ord a => Semiring p => Dist p a -> NonEmpty Map a p

#values Source

values :: forall a p. Ord a => Semiring p => Dist p a -> NonEmpty Set a

Re-exports from Math.Probability.Dist.Internal

#Dist Source

newtype Dist p a

Instances