| 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 | 
Simulation.Aivika.Stream.Random
Contents
Description
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.
Arguments
| :: Double | the minimum delay | 
| -> Double | the maximum delay | 
| -> Stream Arrival | the stream of random events | 
Create a new stream with delays distributed uniformly.
Arguments
| :: Double | the mean delay | 
| -> Double | the delay deviation | 
| -> Stream Arrival | the stream of random events | 
Create a new stream with delays distributed normally.
randomExponentialStream Source
Arguments
| :: Double | the mean delay (the reciprocal of the rate) | 
| -> Stream Arrival | the stream of random events | 
Return a new stream with delays distibuted exponentially with the specified mean (the reciprocal of the rate).
Arguments
| :: 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.