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

Copyright(c) 2009 Bryan O'Sullivan
LicenseBSD3
Maintainerbos@serpentine.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Statistics.Distribution.Geometric

Contents

Description

The Geometric distribution. There are two variants of distribution. First is the probability distribution of the number of Bernoulli trials needed to get one success, supported on the set 1,2... Sometimes it's referred to as the shifted geometric distribution to distinguish from another one.

Second variant is probability distribution of the number of failures before first success, defined over the set 0,1...

Synopsis

Documentation

data GeometricDistribution Source #

Distribution over [1..]

Instances

Eq GeometricDistribution Source # 
Data GeometricDistribution Source # 

Methods

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

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

toConstr :: GeometricDistribution -> Constr #

dataTypeOf :: GeometricDistribution -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GeometricDistribution Source # 
Show GeometricDistribution Source # 
Generic GeometricDistribution Source # 
ToJSON GeometricDistribution Source # 
FromJSON GeometricDistribution Source # 
Binary GeometricDistribution Source # 
DiscreteGen GeometricDistribution Source # 
ContGen GeometricDistribution Source # 
Entropy GeometricDistribution Source # 
MaybeEntropy GeometricDistribution Source # 
Variance GeometricDistribution Source # 
MaybeVariance GeometricDistribution Source # 
Mean GeometricDistribution Source # 
MaybeMean GeometricDistribution Source # 
DiscreteDistr GeometricDistribution Source # 
Distribution GeometricDistribution Source # 
type Rep GeometricDistribution Source # 
type Rep GeometricDistribution = D1 (MetaData "GeometricDistribution" "Statistics.Distribution.Geometric" "statistics-0.14.0.2-9wDz1lVU92ZDJSrAe5uHzb" True) (C1 (MetaCons "GD" PrefixI True) (S1 (MetaSel (Just Symbol "gdSuccess") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))

data GeometricDistribution0 Source #

Distribution over [0..]

Instances

Eq GeometricDistribution0 Source # 
Data GeometricDistribution0 Source # 

Methods

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

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

toConstr :: GeometricDistribution0 -> Constr #

dataTypeOf :: GeometricDistribution0 -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GeometricDistribution0 Source # 
Show GeometricDistribution0 Source # 
Generic GeometricDistribution0 Source # 
ToJSON GeometricDistribution0 Source # 
FromJSON GeometricDistribution0 Source # 
Binary GeometricDistribution0 Source # 
DiscreteGen GeometricDistribution0 Source # 
ContGen GeometricDistribution0 Source # 
Entropy GeometricDistribution0 Source # 
MaybeEntropy GeometricDistribution0 Source # 
Variance GeometricDistribution0 Source # 
MaybeVariance GeometricDistribution0 Source # 
Mean GeometricDistribution0 Source # 
MaybeMean GeometricDistribution0 Source # 
DiscreteDistr GeometricDistribution0 Source # 
Distribution GeometricDistribution0 Source # 
type Rep GeometricDistribution0 Source # 
type Rep GeometricDistribution0 = D1 (MetaData "GeometricDistribution0" "Statistics.Distribution.Geometric" "statistics-0.14.0.2-9wDz1lVU92ZDJSrAe5uHzb" True) (C1 (MetaCons "GD0" PrefixI True) (S1 (MetaSel (Just Symbol "gdSuccess0") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))

Constructors

geometric Source #

Arguments

:: Double

Success rate

-> GeometricDistribution 

Create geometric distribution.

geometricE Source #

Arguments

:: Double

Success rate

-> Maybe GeometricDistribution 

Create geometric distribution.

geometric0 Source #

Arguments

:: Double

Success rate

-> GeometricDistribution0 

Create geometric distribution.

geometric0E Source #

Arguments

:: Double

Success rate

-> Maybe GeometricDistribution0 

Create geometric distribution.

Accessors