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

Copyright | (c) 2009 Bryan O'Sullivan
License | BSD3
Maintainer | bos@serpentine.com
Stability | experimental
Portability | portable
Safe Haskell | Safe-Inferred
Language | Haskell2010

Statistics.Distribution.Exponential

Contents

- Constructors
- Accessors

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

- data ExponentialDistribution
- exponential :: Double -> ExponentialDistribution
- exponentialE :: Double -> Maybe ExponentialDistribution
- edLambda :: ExponentialDistribution -> Double

# Documentation

data ExponentialDistribution Source #

#### Instances

Instances details

FromJSON ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods parseJSON :: Value -> Parser ExponentialDistribution Source # parseJSONList :: Value -> Parser [ExponentialDistribution] Source #
ToJSON ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods toJSON :: ExponentialDistribution -> Value Source # toEncoding :: ExponentialDistribution -> Encoding Source # toJSONList :: [ExponentialDistribution] -> Value Source # toEncodingList :: [ExponentialDistribution] -> Encoding Source #
Data ExponentialDistribution Source # |

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 Source #

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

toConstr :: ExponentialDistribution -> Constr Source #

dataTypeOf :: ExponentialDistribution -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Generic ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Associated Types type Rep ExponentialDistribution :: Type -> Type Source # Methods from :: ExponentialDistribution -> Rep ExponentialDistribution x Source # to :: Rep ExponentialDistribution x -> ExponentialDistribution Source #
Read ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods readsPrec :: Int -> ReadS ExponentialDistribution Source # readList :: ReadS [ExponentialDistribution] Source # readPrec :: ReadPrec ExponentialDistribution Source # readListPrec :: ReadPrec [ExponentialDistribution] Source #
Show ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods showsPrec :: Int -> ExponentialDistribution -> ShowS Source # show :: ExponentialDistribution -> String Source # showList :: [ExponentialDistribution] -> ShowS Source #
Binary ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods put :: ExponentialDistribution -> Put Source # get :: Get ExponentialDistribution Source # putList :: [ExponentialDistribution] -> Put Source #
Eq ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods (==) :: ExponentialDistribution -> ExponentialDistribution -> Bool Source # (/=) :: ExponentialDistribution -> ExponentialDistribution -> Bool Source #
ContDistr ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods density :: ExponentialDistribution -> Double -> Double Source # logDensity :: ExponentialDistribution -> Double -> Double Source # quantile :: ExponentialDistribution -> Double -> Double Source # complQuantile :: ExponentialDistribution -> Double -> Double Source #
ContGen ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods genContVar :: StatefulGen g m => ExponentialDistribution -> g -> m Double Source #
Distribution ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods cumulative :: ExponentialDistribution -> Double -> Double Source # complCumulative :: ExponentialDistribution -> Double -> Double Source #
Entropy ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods entropy :: ExponentialDistribution -> Double Source #
MaybeEntropy ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods maybeEntropy :: ExponentialDistribution -> Maybe Double Source #
MaybeMean ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods maybeMean :: ExponentialDistribution -> Maybe Double Source #
MaybeVariance ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods maybeVariance :: ExponentialDistribution -> Maybe Double Source # maybeStdDev :: ExponentialDistribution -> Maybe Double Source #
Mean ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods mean :: ExponentialDistribution -> Double Source #
Variance ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential Methods variance :: ExponentialDistribution -> Double Source # stdDev :: ExponentialDistribution -> Double Source #
FromSample ExponentialDistribution Double Source # | 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 Source #
type Rep ExponentialDistribution Source # |
Instance details Defined in Statistics.Distribution.Exponential type Rep ExponentialDistribution = D1 ('MetaData "ExponentialDistribution" "Statistics.Distribution.Exponential" "statistics-0.16.2.1-An1XEEv5tKOFj5G6JDoeTv" 'True) (C1 ('MetaCons "ED" 'PrefixI 'True) (S1 ('MetaSel ('Just "edLambda") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

# Constructors

exponential Source #

Arguments

:: Double | Rate parameter.
-> ExponentialDistribution |

Create an exponential distribution.

exponentialE Source #

Arguments

:: Double | Rate parameter.
-> Maybe ExponentialDistribution |

Create an exponential distribution.

# Accessors

edLambda :: ExponentialDistribution -> Double Source #