Copyright | Copyright (c) 2009-2015, David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Tested with: GHC 7.10.1
This module defines some useful random network computations that hold the current process for the corresponding time interval, when processing every input element.
- randomUniformNet :: MonadDES m => Double -> Double -> Net m a a
- randomUniformIntNet :: MonadDES m => Int -> Int -> Net m a a
- randomTriangularNet :: MonadDES m => Double -> Double -> Double -> Net m a a
- randomNormalNet :: MonadDES m => Double -> Double -> Net m a a
- randomLogNormalNet :: MonadDES m => Double -> Double -> Net m a a
- randomExponentialNet :: MonadDES m => Double -> Net m a a
- randomErlangNet :: MonadDES m => Double -> Int -> Net m a a
- randomPoissonNet :: MonadDES m => Double -> Net m a a
- randomBinomialNet :: MonadDES m => Double -> Int -> Net m a a
- randomGammaNet :: MonadDES m => Double -> Double -> Net m a a
- randomBetaNet :: MonadDES m => Double -> Double -> Net m a a
- randomWeibullNet :: MonadDES m => Double -> Double -> Net m a a
- randomDiscreteNet :: MonadDES m => DiscretePDF Double -> Net m a a
Documentation
When processing every input element, hold the process for a random time interval distributed uniformly.
When processing every input element, hold the process for a random time interval distributed uniformly.
:: MonadDES m | |
=> Double | the minimum time interval |
-> Double | the median of the time interval |
-> Double | the maximum time interval |
-> Net m a a |
When processing every input element, hold the process for a random time interval having the triangular distribution.
When processing every input element, hold the process for a random time interval distributed normally.
:: MonadDES m | |
=> Double | the mean of a normal distribution which this distribution is derived from |
-> Double | the deviation of a normal distribution which this distribution is derived from |
-> Net m a a |
When processing every input element, hold the process for a random time interval having the lognormal distribution.
When processing every input element, hold the process for a random time interval distributed exponentially with the specified mean (the reciprocal of the rate).
When processing every input element, hold the process for a random time interval having the Erlang distribution with the specified scale (the reciprocal of the rate) and shape parameters.
When processing every input element, hold the process for a random time interval having the Poisson distribution with the specified mean.
When processing every input element, hold the process for a random time interval having the binomial distribution with the specified probability and trials.
When processing every input element, hold the process for a random time interval having the Gamma distribution with the specified shape and scale.
When processing every input element, hold the process for a random time interval having the Beta distribution with the specified shape parameters (alpha and beta).
When processing every input element, hold the process for a random time interval having the Weibull distribution with the specified shape and scale.
:: MonadDES m | |
=> DiscretePDF Double | the discrete probability density function |
-> Net m a a |
When processing every input element, hold the process for a random time interval having the specified discrete distribution.