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 #

Instances

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

Arguments

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

## Accessors

hdM :: HypergeometricDistribution -> Int #

hdL :: HypergeometricDistribution -> Int #

hdK :: HypergeometricDistribution -> Int #