hmatrix-gsl-stats-0.4.1.3: GSL Statistics interface

Copyright (c) A. V. H. McPhail 2010, 2015 BSD3 haskell.vivian.mcphail gmail com provisional uses ffi None Haskell2010

Numeric.GSL.Distribution.Discrete

Description

GSL discrete random distribution functions

http://www.gnu.org/software/gsl/manual/

Synopsis

# Documentation

Constructors

 Poisson mean Bernoulli probability Geometric probability Logarithmic probability

Instances

 Source

Constructors

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

Instances

 Source

Constructors

 HyperGeometric number type 1, number type 2, samples

Instances

 Source

Constructors

 Multinomial trials, probabilities

Instances

 Source

data DistFunc Source

Constructors

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

Instances

 Source Source

Arguments

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

draw a sample from a one parameter distribution

Arguments

 :: OneParamDist distribution type -> Int random seed -> Double parameter -> Int number of samples -> Vector Word32 result

draw samples from a one parameter distribution

Arguments

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

probability of a variate take a value outside the argument

Arguments

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

draw a sample from a two parameter distribution

Arguments

 :: TwoParamDist distribution type -> Int random seed -> Double parameter 1 -> Word32 parameter 2 -> Int number of samples -> Vector Word32 result

draw samples from a two parameter distribution

Arguments

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

probability of a variate take a value outside the argument

Arguments

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

draw a sample from a three parameter distribution

Arguments

 :: ThreeParamDist distribution type -> Int random seed -> Word32 parameter 1 -> Word32 parameter 2 -> Word32 parameter 3 -> Int number of samples -> Vector Word32 result

draw samples from a three parameter distribution

Arguments

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

probability of a variate take a value outside the argument

Arguments

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

draw a sample from a multi-parameter distribution

Arguments

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

probability of a variate take a value outside the argument