Statistics.Distribution.Hypergeometric

statistics-0.16.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 | 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 #

#### Instances

Instances details

FromJSON HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods parseJSON :: Value -> Parser HypergeometricDistribution # parseJSONList :: Value -> Parser [HypergeometricDistribution] # omittedField :: Maybe HypergeometricDistribution #
ToJSON HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods toJSON :: HypergeometricDistribution -> Value # toEncoding :: HypergeometricDistribution -> Encoding # toJSONList :: [HypergeometricDistribution] -> Value # toEncodingList :: [HypergeometricDistribution] -> Encoding # omitField :: HypergeometricDistribution -> Bool #
Binary HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods put :: HypergeometricDistribution -> Put # get :: Get HypergeometricDistribution # putList :: [HypergeometricDistribution] -> Put #
Data HypergeometricDistribution # |
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 # 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 :: forall r r'. (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 #
Generic HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Associated Types
type Rep HypergeometricDistribution |
Instance details Defined in Statistics.Distribution.Hypergeometric type Rep HypergeometricDistribution = D1 ('MetaData "HypergeometricDistribution" "Statistics.Distribution.Hypergeometric" "statistics-0.16.3.0-JhFVwN7Kv9y2XSvDlj54t" '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))))
Methods from :: HypergeometricDistribution -> Rep HypergeometricDistribution x # to :: Rep HypergeometricDistribution x -> HypergeometricDistribution #
Read HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods readsPrec :: Int -> ReadS HypergeometricDistribution # readList :: ReadS [HypergeometricDistribution] # readPrec :: ReadPrec HypergeometricDistribution # readListPrec :: ReadPrec [HypergeometricDistribution] #
Show HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods showsPrec :: Int -> HypergeometricDistribution -> ShowS # show :: HypergeometricDistribution -> String # showList :: [HypergeometricDistribution] -> ShowS #
Eq HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods (==) :: HypergeometricDistribution -> HypergeometricDistribution -> Bool # (/=) :: HypergeometricDistribution -> HypergeometricDistribution -> Bool #
DiscreteDistr HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods probability :: HypergeometricDistribution -> Int -> Double # logProbability :: HypergeometricDistribution -> Int -> Double #
Distribution HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods cumulative :: HypergeometricDistribution -> Double -> Double # complCumulative :: HypergeometricDistribution -> Double -> Double #
Entropy HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods entropy :: HypergeometricDistribution -> Double #
MaybeEntropy HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods maybeEntropy :: HypergeometricDistribution -> Maybe Double #
MaybeMean HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods maybeMean :: HypergeometricDistribution -> Maybe Double #
MaybeVariance HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods maybeVariance :: HypergeometricDistribution -> Maybe Double # maybeStdDev :: HypergeometricDistribution -> Maybe Double #
Mean HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods mean :: HypergeometricDistribution -> Double #
Variance HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric Methods variance :: HypergeometricDistribution -> Double # stdDev :: HypergeometricDistribution -> Double #
type Rep HypergeometricDistribution # |
Instance details Defined in Statistics.Distribution.Hypergeometric type Rep HypergeometricDistribution = D1 ('MetaData "HypergeometricDistribution" "Statistics.Distribution.Hypergeometric" "statistics-0.16.3.0-JhFVwN7Kv9y2XSvDlj54t" '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 #

Arguments

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

hypergeometricE #

Arguments

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

## Accessors

hdM :: HypergeometricDistribution -> Int #

hdL :: HypergeometricDistribution -> Int #

hdK :: HypergeometricDistribution -> Int #