statistics-0.16.2.1: A library of statistical types, data, and functions
Copyright(c) 2009 Bryan O'Sullivan
LicenseBSD3
Maintainerbos@serpentine.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Statistics.Distribution.Exponential

Description

The exponential distribution. This is the continuous probability distribution of the times between events in a Poisson process, in which events occur continuously and independently at a constant average rate.

Synopsis

Documentation

data ExponentialDistribution #

Instances

Instances details
FromJSON ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

ToJSON ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Data ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

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

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

toConstr :: ExponentialDistribution -> Constr

dataTypeOf :: ExponentialDistribution -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ExponentialDistribution)

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

gmapT :: (forall b. Data b => b -> b) -> ExponentialDistribution -> ExponentialDistribution

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

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

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

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

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

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

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

Generic ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Associated Types

type Rep ExponentialDistribution :: Type -> Type

Read ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Show ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Binary ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Eq ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

ContDistr ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

density :: ExponentialDistribution -> Double -> Double #

logDensity :: ExponentialDistribution -> Double -> Double #

quantile :: ExponentialDistribution -> Double -> Double #

complQuantile :: ExponentialDistribution -> Double -> Double #

ContGen ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

genContVar :: StatefulGen g m => ExponentialDistribution -> g -> m Double #

Distribution ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

cumulative :: ExponentialDistribution -> Double -> Double #

complCumulative :: ExponentialDistribution -> Double -> Double #

Entropy ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

entropy :: ExponentialDistribution -> Double #

MaybeEntropy ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

maybeEntropy :: ExponentialDistribution -> Maybe Double #

MaybeMean ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

maybeMean :: ExponentialDistribution -> Maybe Double #

MaybeVariance ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

maybeVariance :: ExponentialDistribution -> Maybe Double #

maybeStdDev :: ExponentialDistribution -> Maybe Double #

Mean ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

Methods

mean :: ExponentialDistribution -> Double #

Variance ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

FromSample ExponentialDistribution Double #

Create exponential distribution from sample. Estimates the rate with the maximum likelihood estimator, which is biased. Returns Nothing if the sample mean does not exist or is not positive.

Instance details

Defined in Statistics.Distribution.Exponential

Methods

fromSample :: Vector v Double => v Double -> Maybe ExponentialDistribution #

type Rep ExponentialDistribution # 
Instance details

Defined in Statistics.Distribution.Exponential

type Rep ExponentialDistribution = D1 ('MetaData "ExponentialDistribution" "Statistics.Distribution.Exponential" "statistics-0.16.2.1-98mJfW1HOHt8aIUJHLREex" 'True) (C1 ('MetaCons "ED" 'PrefixI 'True) (S1 ('MetaSel ('Just "edLambda") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

Constructors

exponential #

Arguments

:: Double

Rate parameter.

-> ExponentialDistribution 

Create an exponential distribution.

exponentialE #

Arguments

:: Double

Rate parameter.

-> Maybe ExponentialDistribution 

Create an exponential distribution.

Accessors