|
Numeric.Probability.Object | Portability | Multi-parameter type class with functional dependency |
|
|
|
Description |
Abstract interface to probabilistic objects
like random generators and probability distributions.
It allows to use the same code
both for computing complete distributions
and for generating random values according to the distribution.
The latter one is of course more efficient
and may be used for approximation of the distribution by simulation.
|
|
Synopsis |
|
|
|
Documentation |
|
class Monad obj => C prob obj | obj -> prob where | Source |
|
| Methods | fromFrequencies :: [(a, prob)] -> obj a | Source |
|
| | Instances | |
|
|
type Spread obj a = [a] -> obj a | Source |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Give a list of frequencies, they do not need to sum up to 1.
|
|
Produced by Haddock version 2.4.2 |