Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Gamma a = Gamma a a
- gamma :: Distribution Gamma a => a -> a -> RVar a
- gammaT :: Distribution Gamma a => a -> a -> RVarT m a
- newtype Erlang a b = Erlang a
- erlang :: Distribution (Erlang a) b => a -> RVar b
- erlangT :: Distribution (Erlang a) b => a -> RVarT m b
- mtGamma :: (Floating a, Ord a, Distribution StdUniform a, Distribution Normal a) => a -> a -> RVarT m a
Documentation
Gamma a a |
Instances
(Real a, Distribution Gamma a) => CDF Gamma a Source # | |
(Floating a, Ord a, Distribution Normal a, Distribution StdUniform a) => Distribution Gamma a Source # | |
Erlang a |
Instances
(Integral a, Real b, Distribution (Erlang a) b) => CDF (Erlang a) b Source # | |
(Integral a, Floating b, Ord b, Distribution Normal b, Distribution StdUniform b) => Distribution (Erlang a) b Source # | |
mtGamma :: (Floating a, Ord a, Distribution StdUniform a, Distribution Normal a) => a -> a -> RVarT m a Source #
derived from Marsaglia & Tang, "A Simple Method for generating gamma variables", ACM Transactions on Mathematical Software, Vol 26, No 3 (2000), p363-372.