probability-0.2.5.2: Probabilistic Functional Programming

Numeric.Probability.Shape

Description

Collection of some shapes of distribution.

Synopsis

# Documentation

type T prob = prob -> prob Source #

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 prob Source #

uniform :: Fractional prob => T prob Source #

negExp :: Floating prob => T prob Source #

normal :: Floating prob => T prob Source #

normalCurve :: Floating prob => prob -> prob -> prob -> prob Source #