Simulation.Aivika.Process.Random

Description

Tested with: GHC 7.8.3

This module defines helper functions, which are useful to hold the `Process` computation for a time interval according to some random distribution.

Synopsis

Documentation

Arguments

 :: Double the minimum time interval -> Double the maximum time interval -> Process Double a computation of the time interval for which the process was actually held

Hold the process for a random time interval distributed uniformly.

Arguments

 :: Double the minimum time interval -> Double the maximum time interval -> Process ()

Hold the process for a random time interval distributed uniformly.

Arguments

 :: Int the minimum time interval -> Int the maximum time interval -> Process Int a computation of the time interval for which the process was actually held

Hold the process for a random time interval distributed uniformly.

Arguments

 :: Int the minimum time interval -> Int the maximum time interval -> Process ()

Hold the process for a random time interval distributed uniformly.

Arguments

 :: Double the mean time interval -> Double the time interval deviation -> Process Double a computation of the time interval for which the process was actually held

Hold the process for a random time interval distributed normally.

Arguments

 :: Double the mean time interval -> Double the time interval deviation -> Process ()

Hold the process for a random time interval distributed normally.

Arguments

 :: Double the mean time interval (the reciprocal of the rate) -> Process Double a computation of the time interval for which the process was actually held

Hold the process for a random time interval distributed exponentially with the specified mean (the reciprocal of the rate).

Arguments

 :: Double the mean time interval (the reciprocal of the rate) -> Process ()

Hold the process for a random time interval distributed exponentially with the specified mean (the reciprocal of the rate).

Arguments

 :: Double the scale (the reciprocal of the rate) -> Int the shape -> Process Double a computation of the time interval for which the process was actually held

Hold the process for a random time interval having the Erlang distribution with the specified scale (the reciprocal of the rate) and shape parameters.

Arguments

 :: Double the scale (the reciprocal of the rate) -> Int the shape -> Process ()

Hold the process for a random time interval having the Erlang distribution with the specified scale (the reciprocal of the rate) and shape parameters.

Arguments

 :: Double the mean time interval -> Process Int a computation of the time interval for which the process was actually held

Hold the process for a random time interval having the Poisson distribution with the specified mean.

Arguments

 :: Double the mean time interval -> Process ()

Hold the process for a random time interval having the Poisson distribution with the specified mean.

Arguments

 :: Double the probability -> Int the number of trials -> Process Int a computation of the time interval for which the process was actually held

Hold the process for a random time interval having the binomial distribution with the specified probability and trials.

Arguments

 :: Double the probability -> Int the number of trials -> Process ()

Hold the process for a random time interval having the binomial distribution with the specified probability and trials.