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 #

Instances

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

# Constructors

exponential #

Arguments

:: Double | Rate parameter.
-> ExponentialDistribution |

Create an exponential distribution.

exponentialFromSample :: Sample -> ExponentialDistribution #

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

# Accessors

edLambda :: ExponentialDistribution -> Double #