Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class (Eq a, Floating a, Factorial a) => Gamma a where
- gamma :: a -> a
- lnGamma :: a -> a
- lnFactorial :: Integral b => b -> a
- class Num a => Factorial a where
- class Gamma a => IncGamma a where
- lowerGamma :: a -> a -> a
- lnLowerGamma :: a -> a -> a
- p :: a -> a -> a
- upperGamma :: a -> a -> a
- lnUpperGamma :: a -> a -> a
- q :: a -> a -> a
- class Gamma a => GenGamma a where
- generalizedGamma :: Int -> a -> a
- lnGeneralizedGamma :: Int -> a -> a
Documentation
class (Eq a, Floating a, Factorial a) => Gamma a where Source #
Nothing
The gamma function: gamma z == integral from 0 to infinity of
t -> t**(z-1) * exp (negate t)
Natural log of the gamma function
lnFactorial :: Integral b => b -> a Source #
Natural log of the factorial function
class Num a => Factorial a where Source #
Factorial function
Nothing
class Gamma a => IncGamma a where Source #
Incomplete gamma functions.
lowerGamma :: a -> a -> a Source #
Lower gamma function: lowerGamma s x == integral from 0 to x of
t -> t**(s-1) * exp (negate t)
lnLowerGamma :: a -> a -> a Source #
Natural log of lower gamma function
Regularized lower incomplete gamma function: lowerGamma s x / gamma s
upperGamma :: a -> a -> a Source #
Upper gamma function: lowerGamma s x == integral from x to infinity of
t -> t**(s-1) * exp (negate t)
lnUpperGamma :: a -> a -> a Source #
Natural log of upper gamma function
Regularized upper incomplete gamma function: upperGamma s x / gamma s
class Gamma a => GenGamma a where Source #
Generalized gamma function (also known as multivariate gamma function). See http://en.wikipedia.org/wiki/Multivariate_gamma_function (Fetched Feb 29, 2012).
generalizedGamma :: Int -> a -> a Source #
Generalized gamma function. generalizedGamma p x = (pi ** ((p - 1) / 2)) * gamma x * generalizedGamma (p - 1) (x - 0.5)
lnGeneralizedGamma :: Int -> a -> a Source #
Natural log of generalizedGamma
Instances
GenGamma Double Source # | |
Defined in Math.Gamma | |
GenGamma Float Source # | |
Defined in Math.Gamma |