statistics-0.13.3.0: 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 | None
Language | Haskell98

Statistics.Distribution.Exponential

Contents

- Constructors
- Accessors

Description

The exponential distribution. This is the continunous 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
- exponentialFromSample :: Sample -> ExponentialDistribution
- edLambda :: ExponentialDistribution -> Double

# Documentation

data ExponentialDistribution Source #

Instances

Eq ExponentialDistribution Source # |
Methods (==) :: ExponentialDistribution -> ExponentialDistribution -> Bool # (/=) :: ExponentialDistribution -> ExponentialDistribution -> Bool #
Data ExponentialDistribution Source # |

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 :: (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 #

Read ExponentialDistribution Source # |
Methods readsPrec :: Int -> ReadS ExponentialDistribution # readList :: ReadS [ExponentialDistribution] # readPrec :: ReadPrec ExponentialDistribution # readListPrec :: ReadPrec [ExponentialDistribution] #
Show ExponentialDistribution Source # |
Methods showsPrec :: Int -> ExponentialDistribution -> ShowS # show :: ExponentialDistribution -> String # showList :: [ExponentialDistribution] -> ShowS #
Generic ExponentialDistribution Source # |
Associated Types type Rep ExponentialDistribution :: * -> * # Methods from :: ExponentialDistribution -> Rep ExponentialDistribution x # to :: Rep ExponentialDistribution x -> ExponentialDistribution #
ToJSON ExponentialDistribution Source # |
Methods toJSON :: ExponentialDistribution -> Value # toEncoding :: ExponentialDistribution -> Encoding # toJSONList :: [ExponentialDistribution] -> Value # toEncodingList :: [ExponentialDistribution] -> Encoding #
FromJSON ExponentialDistribution Source # |
Methods parseJSON :: Value -> Parser ExponentialDistribution # parseJSONList :: Value -> Parser [ExponentialDistribution] #
Binary ExponentialDistribution Source # |
Methods put :: ExponentialDistribution -> Put # get :: Get ExponentialDistribution # putList :: [ExponentialDistribution] -> Put #
ContGen ExponentialDistribution Source # |
Methods genContVar :: PrimMonad m => ExponentialDistribution -> Gen (PrimState m) -> m Double Source #
Entropy ExponentialDistribution Source # |
Methods entropy :: ExponentialDistribution -> Double Source #
MaybeEntropy ExponentialDistribution Source # |
Methods maybeEntropy :: ExponentialDistribution -> Maybe Double Source #
Variance ExponentialDistribution Source # |
Methods variance :: ExponentialDistribution -> Double Source # stdDev :: ExponentialDistribution -> Double Source #
MaybeVariance ExponentialDistribution Source # |
Methods maybeVariance :: ExponentialDistribution -> Maybe Double Source # maybeStdDev :: ExponentialDistribution -> Maybe Double Source #
Mean ExponentialDistribution Source # |
Methods mean :: ExponentialDistribution -> Double Source #
MaybeMean ExponentialDistribution Source # |
Methods maybeMean :: ExponentialDistribution -> Maybe Double Source #
ContDistr ExponentialDistribution Source # |
Methods density :: ExponentialDistribution -> Double -> Double Source # quantile :: ExponentialDistribution -> Double -> Double Source # logDensity :: ExponentialDistribution -> Double -> Double Source #
Distribution ExponentialDistribution Source # |
Methods cumulative :: ExponentialDistribution -> Double -> Double Source # complCumulative :: ExponentialDistribution -> Double -> Double Source #
type Rep ExponentialDistribution Source # |
type Rep ExponentialDistribution = D1 (MetaData "ExponentialDistribution" "Statistics.Distribution.Exponential" "statistics-0.13.3.0-Fvkducafmyw9ljEnBhS6Nm" True) (C1 (MetaCons "ED" PrefixI True) (S1 (MetaSel (Just Symbol "edLambda") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))

# Constructors

exponential Source #

Arguments

:: Double | Rate parameter.
-> ExponentialDistribution |

Create an exponential distribution.

exponentialFromSample :: Sample -> ExponentialDistribution Source #

Create exponential distribution from sample. No tests are made to check whether it truly is exponential.

# Accessors

edLambda :: ExponentialDistribution -> Double Source #