statistics-0.16.1.2: A library of statistical types, data, and functions
Copyright (c) 2009 2011 Bryan O'Sullivan
License BSD3
Maintainer bos@serpentine.com
Stability experimental
Portability portable
Safe Haskell None
Language Haskell2010

Statistics.Distribution.Gamma

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

data GammaDistribution Source #

The gamma distribution.

Instances

Instances details
Eq GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Data GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Methods

gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> GammaDistribution -> c GammaDistribution Source #

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c GammaDistribution Source #

toConstr :: GammaDistribution -> Constr Source #

dataTypeOf :: GammaDistribution -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c GammaDistribution ) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c GammaDistribution ) Source #

gmapT :: ( forall b. Data b => b -> b) -> GammaDistribution -> GammaDistribution Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> GammaDistribution -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> GammaDistribution -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> GammaDistribution -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> GammaDistribution -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> GammaDistribution -> m GammaDistribution Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> GammaDistribution -> m GammaDistribution Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> GammaDistribution -> m GammaDistribution Source #

Read GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Show GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Generic GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

ToJSON GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

FromJSON GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Binary GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

ContGen GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

MaybeEntropy GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Variance GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

MaybeVariance GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Mean GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

MaybeMean GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

ContDistr GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

Distribution GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

type Rep GammaDistribution Source #
Instance details

Defined in Statistics.Distribution.Gamma

type Rep GammaDistribution = D1 (' MetaData "GammaDistribution" "Statistics.Distribution.Gamma" "statistics-0.16.1.2-IkOne9g3oJ1vhHVSRLPUO" ' False ) ( C1 (' MetaCons "GD" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "gdShape") ' SourceUnpack ' SourceStrict ' DecidedStrict ) ( Rec0 Double ) :*: S1 (' MetaSel (' Just "gdScale") ' SourceUnpack ' SourceStrict ' DecidedStrict ) ( Rec0 Double )))

Constructors

gammaDistr Source #

Arguments

:: Double

Shape parameter. k

-> Double

Scale parameter, ϑ.

-> GammaDistribution

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

gammaDistrE Source #

Arguments

:: Double

Shape parameter. k

-> Double

Scale parameter, ϑ.

-> Maybe GammaDistribution

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

improperGammaDistr Source #

Arguments

:: Double

Shape parameter. k

-> Double

Scale parameter, ϑ.

-> GammaDistribution

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

improperGammaDistrE Source #

Arguments

:: Double

Shape parameter. k

-> Double

Scale parameter, ϑ.

-> Maybe GammaDistribution

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

Accessors