Safe Haskell | Safe-Inferred |
---|
Numeric.Probability.Shape
Description
Collection of some shapes of distribution.
- type T prob = prob -> prob
- linear :: Fractional prob => T prob
- uniform :: Fractional prob => T prob
- negExp :: Floating prob => T prob
- normal :: Floating prob => T prob
- normalCurve :: Floating prob => prob -> prob -> prob -> prob
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
normalCurve :: Floating prob => prob -> prob -> prob -> probSource