mwc-random-monad-0.4: Monadic interface for mwc-random

Portabilityportable
Stabilityexperimental
Maintaineralexey.skladnoy@gmail.com
Safe HaskellNone

System.Random.MWC.Distributions.Monad

Description

Monadic wrapper for various distributions generators.

Synopsis

Documentation

normalSource

Arguments

:: PrimMonad m 
=> Double

Mean

-> Double

Standard deviation

-> Rand m Double 

Normally distributed variable

standard :: PrimMonad m => Rand m DoubleSource

Normally distributed variables with mean 0 and 1 standard deviation

exponentialSource

Arguments

:: PrimMonad m 
=> Double

Scale parameter

-> Rand m Double 

Generate exponentially distributed random variate.

gammaSource

Arguments

:: PrimMonad m 
=> Double

Shape parameter

-> Double

Scale parameter

-> Rand m Double 

Random variate generator for gamma distribution.

chiSquareSource

Arguments

:: PrimMonad m 
=> Int

Number of degrees of freedom

-> Rand m Double 

Random variate generator for chi square distribution.