Safe Haskell | Safe |
---|---|

Language | Haskell98 |

Collection of some shapes of distribution.

## Synopsis

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

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