hmatrix-gsl-stats-0.2.1: GSL Statistics interface

Copyright(c) A. V. H. McPhail 2010
LicenseBSD3
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Stabilityprovisional
Portabilityuses ffi
Safe HaskellNone
LanguageHaskell2010

Numeric.GSL.Distribution.Discrete

Description

GSL discrete random distribution functions

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

Synopsis

Documentation

data OneParamDist Source

Constructors

Poisson

mean

Bernoulli

probability

Geometric

probability

Logarithmic

probability

Instances

data TwoParamDist Source

Constructors

Binomial

probability, successes

NegBinomial

probability, successes

Pascal

probability, n

Instances

data ThreeParamDist Source

Constructors

HyperGeometric

number type 1, number type 2, samples

Instances

data MultiParamDist Source

Constructors

Multinomial

trials, probabilities

Instances

data DistFunc Source

Constructors

Density

pdf

Lower

lower cdf

Upper

upper cdf

LowInv

lower inverse cdf

UppInv

upper inverse cdf

Instances

random_1p Source

Arguments

:: OneParamDist

distribution type

-> Int

random seed

-> Double

parameter

-> Int

result

draw a sample from a one parameter distribution

density_1p Source

Arguments

:: OneParamDist

density type

-> DistFunc

distribution function type

-> Double

parameter

-> Int

value

-> Double

result

probability of a variate take a value outside the argument

random_2p Source

Arguments

:: TwoParamDist

distribution type

-> Int

random seed

-> Double

parameter 1

-> Int

parameter 2

-> Int

result

draw a sample from a two parameter distribution

density_2p Source

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

random_3p Source

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

density_3p Source

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

random_mp Source

Arguments

:: MultiParamDist

distribution type

-> Int

random seed

-> Int

trials

-> Vector Double

parameters

-> Vector Int

result

draw a sample from a three parameter distribution

density_mp Source

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