statistics-0.14.0.2: A library of statistical types, data, and functions

Copyright (c) 2009 2011 Bryan O'Sullivan BSD3 bos@serpentine.com experimental portable None Haskell98

Statistics.Distribution.Gamma

Contents

Description

The gamma distribution. This is a continuous probability distribution with two parameters, k and ϑ. If k is integral, the distribution represents the sum of k independent exponentially distributed random variables, each of which has a mean of ϑ.

Synopsis

# Documentation

The gamma distribution.

Instances

 Source # Methods Source # Methodsgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GammaDistribution -> c GammaDistribution #gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GammaDistribution #dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GammaDistribution) #dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GammaDistribution) #gmapT :: (forall b. Data b => b -> b) -> GammaDistribution -> GammaDistribution #gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GammaDistribution -> r #gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GammaDistribution -> r #gmapQ :: (forall d. Data d => d -> u) -> GammaDistribution -> [u] #gmapQi :: Int -> (forall d. Data d => d -> u) -> GammaDistribution -> u #gmapM :: Monad m => (forall d. Data d => d -> m d) -> GammaDistribution -> m GammaDistribution #gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GammaDistribution -> m GammaDistribution #gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GammaDistribution -> m GammaDistribution # Source # Methods Source # MethodsshowList :: [GammaDistribution] -> ShowS # Source # Associated Typestype Rep GammaDistribution :: * -> * # Methods Source # Methods Source # Methods Source # MethodsputList :: [GammaDistribution] -> Put # Source # MethodsgenContVar :: PrimMonad m => GammaDistribution -> Gen (PrimState m) -> m Double Source # Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # Methods Source # type Rep GammaDistribution = D1 (MetaData "GammaDistribution" "Statistics.Distribution.Gamma" "statistics-0.14.0.2-9wDz1lVU92ZDJSrAe5uHzb" False) (C1 (MetaCons "GD" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "gdShape") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "gdScale") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double))))

# Constructors

Arguments

 :: Double Shape parameter. k -> Double Scale parameter, ϑ. -> GammaDistribution

Create gamma distribution. Both shape and scale parameters must be positive.

Arguments

 :: Double Shape parameter. k -> Double Scale parameter, ϑ. -> Maybe GammaDistribution

Create gamma distribution. Both shape and scale parameters must be positive.

Arguments

 :: Double Shape parameter. k -> Double Scale parameter, ϑ. -> GammaDistribution

Create gamma distribution. Both shape and scale parameters must be non-negative.

Arguments

 :: Double Shape parameter. k -> Double Scale parameter, ϑ. -> Maybe GammaDistribution

Create gamma distribution. Both shape and scale parameters must be non-negative.

# Accessors

Shape parameter, k.

Scale parameter, ϑ.