hstatistics-0.1.0.2: Statistics

Portabilityuses ffi
Stabilityprovisional
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com

Numeric.GSL.Distribution.Discrete

Description

GSL discrete random distribution functions

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_1pSource

Arguments

:: OneParamDist

distribution type

-> Int

random seed

-> Double

parameter

-> Int

result

draw a sample from a one parameter distribution

density_1pSource

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_2pSource

Arguments

:: TwoParamDist

distribution type

-> Int

random seed

-> Double

parameter 1

-> Int

parameter 2

-> Int

result

draw a sample from a two parameter distribution

density_2pSource

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_3pSource

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_3pSource

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_mpSource

Arguments

:: MultiParamDist

distribution type

-> Int

random seed

-> Int

trials

-> Vector Double

parameters

-> Vector Int

result

draw a sample from a three parameter distribution

density_mpSource

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