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.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
- hypergeometricE :: Int -> Int -> Int -> Maybe HypergeometricDistribution
- hdM :: HypergeometricDistribution -> Int
- hdL :: HypergeometricDistribution -> Int
- hdK :: HypergeometricDistribution -> Int

# Documentation

data HypergeometricDistribution Source #

#### Instances

Instances details

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

Instance details

Defined in Statistics.Distribution.Hypergeometric

Methods

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

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

toConstr :: HypergeometricDistribution -> Constr Source #

dataTypeOf :: HypergeometricDistribution -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Generic HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Associated Types type Rep HypergeometricDistribution :: Type -> Type Source # Methods from :: HypergeometricDistribution -> Rep HypergeometricDistribution x Source # to :: Rep HypergeometricDistribution x -> HypergeometricDistribution Source #
Read HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods readsPrec :: Int -> ReadS HypergeometricDistribution Source # readList :: ReadS [HypergeometricDistribution] Source # readPrec :: ReadPrec HypergeometricDistribution Source # readListPrec :: ReadPrec [HypergeometricDistribution] Source #
Show HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods showsPrec :: Int -> HypergeometricDistribution -> ShowS Source # show :: HypergeometricDistribution -> String Source # showList :: [HypergeometricDistribution] -> ShowS Source #
Binary HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods put :: HypergeometricDistribution -> Put Source # get :: Get HypergeometricDistribution Source # putList :: [HypergeometricDistribution] -> Put Source #
Eq HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods (==) :: HypergeometricDistribution -> HypergeometricDistribution -> Bool Source # (/=) :: HypergeometricDistribution -> HypergeometricDistribution -> Bool Source #
DiscreteDistr HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods probability :: HypergeometricDistribution -> Int -> Double Source # logProbability :: HypergeometricDistribution -> Int -> Double Source #
Distribution HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods cumulative :: HypergeometricDistribution -> Double -> Double Source # complCumulative :: HypergeometricDistribution -> Double -> Double Source #
Entropy HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods entropy :: HypergeometricDistribution -> Double Source #
MaybeEntropy HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods maybeEntropy :: HypergeometricDistribution -> Maybe Double Source #
MaybeMean HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods maybeMean :: HypergeometricDistribution -> Maybe Double Source #
MaybeVariance HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods maybeVariance :: HypergeometricDistribution -> Maybe Double Source # maybeStdDev :: HypergeometricDistribution -> Maybe Double Source #
Mean HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods mean :: HypergeometricDistribution -> Double Source #
Variance HypergeometricDistribution Source # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods variance :: HypergeometricDistribution -> Double Source # stdDev :: HypergeometricDistribution -> Double Source #
type Rep HypergeometricDistribution Source # |

Instance details

Defined in Statistics.Distribution.Hypergeometric

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

# Constructors

hypergeometric Source #

Arguments

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

hypergeometricE Source #

Arguments

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

## Accessors

hdM :: HypergeometricDistribution -> Int Source #

hdL :: HypergeometricDistribution -> Int Source #

hdK :: HypergeometricDistribution -> Int Source #