hstatistics-0.1.0.2: Statistics

Portability uses ffi provisional haskell.vivian.mcphail gmail com

Numeric.GSL.Distribution.Discrete

Description

GSL discrete random distribution functions

Synopsis

# Documentation

Constructors

 Poisson mean Bernoulli probability Geometric probability Logarithmic probability

Instances

 Enum OneParamDist

Constructors

 Binomial probability, successes NegBinomial probability, successes Pascal probability, n

Instances

 Enum TwoParamDist

Constructors

 HyperGeometric number type 1, number type 2, samples

Instances

 Enum ThreeParamDist

Constructors

 Multinomial trials, probabilities

Instances

 Enum MultiParamDist

data DistFunc Source

Constructors

 Density pdf Lower lower cdf Upper upper cdf LowInv lower inverse cdf UppInv upper inverse cdf

Instances

 Enum DistFunc Eq DistFunc

Arguments

 :: OneParamDist distribution type -> Int random seed -> Double parameter -> Int result

draw a sample from a one parameter distribution

Arguments

 :: OneParamDist density type -> DistFunc distribution function type -> Double parameter -> Int value -> Double result

probability of a variate take a value outside the argument

Arguments

 :: TwoParamDist distribution type -> Int random seed -> Double parameter 1 -> Int parameter 2 -> Int result

draw a sample from a two parameter distribution

Arguments

 :: TwoParamDist density type -> DistFunc distribution function type -> Double parameter 1 -> Int parameter 2 -> Int value -> Double result

probability of a variate take a value outside the argument

Arguments

 :: ThreeParamDist distribution type -> Int random seed -> Int parameter 1 -> Int parameter 2 -> Int parameter 3 -> Int result

draw a sample from a three parameter distribution

Arguments

 :: ThreeParamDist density type -> DistFunc distribution function type -> Int parameter 1 -> Int parameter 2 -> Int parameter 3 -> Int value -> Double result

probability of a variate take a value outside the argument

Arguments

 :: MultiParamDist distribution type -> Int random seed -> Int trials -> Vector Double parameters -> Vector Int result

draw a sample from a three parameter distribution

Arguments

 :: MultiParamDist density type -> DistFunc distribution function type -> Vector Double parameters -> Vector Int values -> Double result

probability of a variate take a value outside the argument