Stability | experimental |
---|---|

Maintainer | David Sorokin <david.sorokin@gmail.com> |

Safe Haskell | Safe-Inferred |

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, a) -> Stream (Arrival a)
- randomUniformStream :: Double -> Double -> Stream (Arrival Double)
- randomNormalStream :: Double -> Double -> Stream (Arrival Double)
- randomExponentialStream :: Double -> Stream (Arrival Double)
- randomErlangStream :: Double -> Int -> Stream (Arrival Double)
- randomPoissonStream :: Double -> Stream (Arrival Int)
- randomBinomialStream :: Double -> Int -> Stream (Arrival Int)

# Stream of Random Events

:: Parameter (Double, a) | compute a pair of the delay and event of type |

-> Stream (Arrival a) | a stream of delayed events |

Return a sream of random events that arrive with the specified delay.

:: Double | the minimum delay |

-> Double | the maximum delay |

-> Stream (Arrival Double) | the stream of random events with the delays generated |

Create a new stream with delays distributed uniformly.

:: Double | the mean delay |

-> Double | the delay deviation |

-> Stream (Arrival Double) | the stream of random events with the delays generated |

Create a new stream with delays distributed normally.

:: Double | the mean delay (the reciprocal of the rate) |

-> Stream (Arrival Double) | the stream of random events with the delays generated |

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 Double) | the stream of random events with the delays generated |

Return a new stream with delays having the Erlang distribution with the specified scale (the reciprocal of the rate) and shape parameters.