Copyright | Copyright (c) 2009-2015, David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Tested with: GHC 7.8.3
This module defines some useful random processors that hold the current process for the corresponding time interval, when processing every input element.
- randomUniformProcessor :: Double -> Double -> Processor a a
- randomUniformIntProcessor :: Int -> Int -> Processor a a
- randomNormalProcessor :: Double -> Double -> Processor a a
- randomExponentialProcessor :: Double -> Processor a a
- randomErlangProcessor :: Double -> Int -> Processor a a
- randomPoissonProcessor :: Double -> Processor a a
- randomBinomialProcessor :: Double -> Int -> Processor a a
Documentation
When processing every input element, hold the process for a random time interval distributed uniformly.
randomUniformIntProcessor Source
When processing every input element, hold the process for a random time interval distributed uniformly.
When processing every input element, hold the process for a random time interval distributed normally.
randomExponentialProcessor Source
When processing every input element, hold the process for a random time interval distributed exponentially with the specified mean (the reciprocal of the rate).
When processing every input element, hold the process for a random time interval having the Erlang distribution with the specified scale (the reciprocal of the rate) and shape parameters.
When processing every input element, hold the process for a random time interval having the Poisson distribution with the specified mean.
randomBinomialProcessor Source
When processing every input element, hold the process for a random time interval having the binomial distribution with the specified probability and trials.