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

Contents

- Constructors
  - Accessors

Description

The Hypergeometric distribution. This is the discrete probability distribution that measures the probability of k successes in l trials, without replacement, from a finite population.

The parameters of the distribution describe k elements chosen from a population of l, with m elements of one type, and l-m of the other (all are positive integers).

Synopsis

- data HypergeometricDistribution
- hypergeometric :: Int -> Int -> Int -> HypergeometricDistribution
- hdM :: HypergeometricDistribution -> Int
- hdL :: HypergeometricDistribution -> Int
- hdK :: HypergeometricDistribution -> Int

# Documentation

data HypergeometricDistribution Source #

Instances

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

Methods

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

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

toConstr :: HypergeometricDistribution -> Constr #

dataTypeOf :: HypergeometricDistribution -> DataType #

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

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

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

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

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

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

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

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

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

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

Read HypergeometricDistribution Source # |
Methods readsPrec :: Int -> ReadS HypergeometricDistribution # readList :: ReadS [HypergeometricDistribution] # readPrec :: ReadPrec HypergeometricDistribution # readListPrec :: ReadPrec [HypergeometricDistribution] #
Show HypergeometricDistribution Source # |
Methods showsPrec :: Int -> HypergeometricDistribution -> ShowS # show :: HypergeometricDistribution -> String # showList :: [HypergeometricDistribution] -> ShowS #
Generic HypergeometricDistribution Source # |
Associated Types type Rep HypergeometricDistribution :: * -> * # Methods from :: HypergeometricDistribution -> Rep HypergeometricDistribution x # to :: Rep HypergeometricDistribution x -> HypergeometricDistribution #
ToJSON HypergeometricDistribution Source # |
Methods toJSON :: HypergeometricDistribution -> Value # toEncoding :: HypergeometricDistribution -> Encoding # toJSONList :: [HypergeometricDistribution] -> Value # toEncodingList :: [HypergeometricDistribution] -> Encoding #
FromJSON HypergeometricDistribution Source # |
Methods parseJSON :: Value -> Parser HypergeometricDistribution # parseJSONList :: Value -> Parser [HypergeometricDistribution] #
Binary HypergeometricDistribution Source # |
Methods put :: HypergeometricDistribution -> Put # get :: Get HypergeometricDistribution # putList :: [HypergeometricDistribution] -> Put #
Entropy HypergeometricDistribution Source # |
Methods entropy :: HypergeometricDistribution -> Double Source #
MaybeEntropy HypergeometricDistribution Source # |
Methods maybeEntropy :: HypergeometricDistribution -> Maybe Double Source #
Variance HypergeometricDistribution Source # |
Methods variance :: HypergeometricDistribution -> Double Source # stdDev :: HypergeometricDistribution -> Double Source #
MaybeVariance HypergeometricDistribution Source # |
Methods maybeVariance :: HypergeometricDistribution -> Maybe Double Source # maybeStdDev :: HypergeometricDistribution -> Maybe Double Source #
Mean HypergeometricDistribution Source # |
Methods mean :: HypergeometricDistribution -> Double Source #
MaybeMean HypergeometricDistribution Source # |
Methods maybeMean :: HypergeometricDistribution -> Maybe Double Source #
DiscreteDistr HypergeometricDistribution Source # |
Methods probability :: HypergeometricDistribution -> Int -> Double Source # logProbability :: HypergeometricDistribution -> Int -> Double Source #
Distribution HypergeometricDistribution Source # |
Methods cumulative :: HypergeometricDistribution -> Double -> Double Source # complCumulative :: HypergeometricDistribution -> Double -> Double Source #
type Rep HypergeometricDistribution Source # |

type Rep HypergeometricDistribution = D1 (MetaData "HypergeometricDistribution" "Statistics.Distribution.Hypergeometric" "statistics-0.13.3.0-Fvkducafmyw9ljEnBhS6Nm" False) (C1 (MetaCons "HD" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "hdM") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "hdL") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "hdK") SourceUnpack SourceStrict DecidedUnpack) (Rec0 Int)))))

# Constructors

hypergeometric Source #

Arguments

:: Int | m
-> Int | l
-> Int | k
-> HypergeometricDistribution |

## Accessors

hdM :: HypergeometricDistribution -> Int Source #

hdL :: HypergeometricDistribution -> Int Source #

hdK :: HypergeometricDistribution -> Int Source #