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 events, which are useful for describing the input of the model.
- randomStream :: Parameter Double -> Stream Arrival
- randomUniformStream :: Double -> Double -> Stream Arrival
- randomNormalStream :: Double -> Double -> Stream Arrival
- randomExponentialStream :: Double -> Stream Arrival
- randomErlangStream :: Double -> Int -> Stream Arrival
- randomPoissonStream :: Double -> Stream Arrival
- randomBinomialStream :: Double -> Int -> Stream Arrival
Stream of Random Events
randomStream :: Parameter Double -> Stream Arrival Source
Return a sream of random events that arrive with the specified delay.
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).
:: Double | the scale (the reciprocal of the rate) |
-> Int | the shape |
-> Stream Arrival | the stream of random events |
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.