Statistics.Distribution.Normal

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.Normal

Contents

- Constructors

Description

The normal distribution. This is a continuous probability distribution that describes data that cluster around a mean.

Synopsis

- data NormalDistribution
- normalDistr :: Double -> Double -> NormalDistribution
- normalFromSample :: Sample -> NormalDistribution
- standard :: NormalDistribution

# Documentation

data NormalDistribution #

The normal distribution.

Instances

Eq NormalDistribution # |
Methods (==) :: NormalDistribution -> NormalDistribution -> Bool # (/=) :: NormalDistribution -> NormalDistribution -> Bool #
Data NormalDistribution # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NormalDistribution -> c NormalDistribution # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NormalDistribution # toConstr :: NormalDistribution -> Constr # dataTypeOf :: NormalDistribution -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c NormalDistribution) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NormalDistribution) # gmapT :: (forall b. Data b => b -> b) -> NormalDistribution -> NormalDistribution # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NormalDistribution -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NormalDistribution -> r # gmapQ :: (forall d. Data d => d -> u) -> NormalDistribution -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> NormalDistribution -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> NormalDistribution -> m NormalDistribution # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NormalDistribution -> m NormalDistribution # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NormalDistribution -> m NormalDistribution #
Read NormalDistribution # |
Methods readsPrec :: Int -> ReadS NormalDistribution # readList :: ReadS [NormalDistribution] # readPrec :: ReadPrec NormalDistribution # readListPrec :: ReadPrec [NormalDistribution] #
Show NormalDistribution # |
Methods showsPrec :: Int -> NormalDistribution -> ShowS # show :: NormalDistribution -> String # showList :: [NormalDistribution] -> ShowS #
Generic NormalDistribution # |
Associated Types type Rep NormalDistribution :: * -> * # Methods from :: NormalDistribution -> Rep NormalDistribution x # to :: Rep NormalDistribution x -> NormalDistribution #
ToJSON NormalDistribution # |
Methods toJSON :: NormalDistribution -> Value # toEncoding :: NormalDistribution -> Encoding #
FromJSON NormalDistribution # |
Methods parseJSON :: Value -> Parser NormalDistribution #
Binary NormalDistribution # |
Methods put :: NormalDistribution -> Put # get :: Get NormalDistribution # putList :: [NormalDistribution] -> Put #
ContGen NormalDistribution # |
Methods genContVar :: PrimMonad m => NormalDistribution -> Gen (PrimState m) -> m Double #
Entropy NormalDistribution # |
Methods entropy :: NormalDistribution -> Double #
MaybeEntropy NormalDistribution # |
Methods maybeEntropy :: NormalDistribution -> Maybe Double #
Variance NormalDistribution # |
Methods variance :: NormalDistribution -> Double # stdDev :: NormalDistribution -> Double #
MaybeVariance NormalDistribution # |
Methods maybeVariance :: NormalDistribution -> Maybe Double # maybeStdDev :: NormalDistribution -> Maybe Double #
Mean NormalDistribution # |
Methods mean :: NormalDistribution -> Double #
MaybeMean NormalDistribution # |
Methods maybeMean :: NormalDistribution -> Maybe Double #
ContDistr NormalDistribution # |
Methods density :: NormalDistribution -> Double -> Double # quantile :: NormalDistribution -> Double -> Double # logDensity :: NormalDistribution -> Double -> Double #
Distribution NormalDistribution # |
Methods cumulative :: NormalDistribution -> Double -> Double # complCumulative :: NormalDistribution -> Double -> Double #
type Rep NormalDistribution # |
type Rep NormalDistribution = D1 (MetaData "NormalDistribution" "Statistics.Distribution.Normal" "statistics-0.13.3.0-116AMxscZNKCm819FAiSIF" False) (C1 (MetaCons "ND" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "mean") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "stdDev") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double))) ((:*:) (S1 (MetaSel (Just Symbol "ndPdfDenom") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)) (S1 (MetaSel (Just Symbol "ndCdfDenom") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Double)))))

# Constructors

normalDistr #

Arguments

:: Double | Mean of distribution
-> Double | Standard deviation of distribution
-> NormalDistribution |

Create normal distribution from parameters.

IMPORTANT: prior to 0.10 release second parameter was variance not standard deviation.

normalFromSample :: Sample -> NormalDistribution #

Create distribution using parameters estimated from sample. Variance is estimated using maximum likelihood method (biased estimation).

standard :: NormalDistribution #

Standard normal distribution with mean equal to 0 and variance equal to 1