probability-0.2.1: Probabilistic Functional Programming

Numeric.Probability.Shape

Description

Collection of some shapes of distribution.

Synopsis

Documentation

type T prob = prob -> probSource

A shape is a mapping from the interval [0,1] to non-negative numbers. They need not to be normalized (sum up to 1) because this is done by subsequent steps. (It would also be impossible to normalize the function in a way that each discretization is normalized as well.)

linear :: Fractional prob => T probSource

uniform :: Fractional prob => T probSource

negExp :: Floating prob => T probSource

normal :: Floating prob => T probSource

normalCurve :: Floating prob => prob -> prob -> prob -> probSource