Copyright | Copyright (c) 2009-2013, David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Tested with: GHC 7.6.3
This module defines random streams of data, which are useful for describing the input of the model.
- randomUniformStream :: Double -> Double -> Stream Double
- randomNormalStream :: Double -> Double -> Stream Double
- randomExponentialStream :: Double -> Stream Double
- randomErlangStream :: Double -> Int -> Stream Double
- randomPoissonStream :: Double -> Stream Int
- randomBinomialStream :: Double -> Int -> Stream Int
Documentation
Create a new stream with delays distributed uniformly.
Create a new stream with delays distributed normally.
randomExponentialStream Source
Return a new stream with delays distibuted exponentially with the specified mean (the reciprocal of the rate).
Return a new stream with delays having the Erlang distribution with the specified scale (the reciprocal of the rate) and shape parameters.
Return a new stream with delays having the Poisson distribution with the specified mean.