Portability | uses ffi |
---|---|
Stability | provisional |
Maintainer | haskell.vivian.mcphail <at> gmail <dot> com |
Safe Haskell | Safe-Infered |
GSL continuous random distribution functions
- data ZeroParamDist = Landau
- data OneParamDist
- data TwoParamDist
- data ThreeParamDist = LevySkew
- data MultiParamDist = Dirichlet
- data BivariateDist = BiGaussian
- data DistFunc
- random_0p :: ZeroParamDist -> Int -> Double
- density_0p :: ZeroParamDist -> DistFunc -> Double -> Double
- random_1p :: OneParamDist -> Int -> Double -> Double
- density_1p :: OneParamDist -> DistFunc -> Double -> Double -> Double
- random_2p :: TwoParamDist -> Int -> Double -> Double -> Double
- density_2p :: TwoParamDist -> DistFunc -> Double -> Double -> Double -> Double
- random_3p :: ThreeParamDist -> Int -> Double -> Double -> Double -> Double
- density_3p :: ThreeParamDist -> DistFunc -> Double -> Double -> Double -> Double -> Double
- random_mp :: MultiParamDist -> Int -> Vector Double -> Vector Double
- density_mp :: MultiParamDist -> DistFunc -> Vector Double -> Vector Double -> Double
- random_biv :: BivariateDist -> Int -> Double -> Double -> Double -> (Double, Double)
- density_biv :: BivariateDist -> DistFunc -> Double -> Double -> Double -> (Double, Double) -> Double
- spherical_vector :: Int -> Int -> Vector Double
Documentation
data OneParamDist Source
data TwoParamDist Source
GaussianTail | limit, standard deviation |
ExpPower | scale, exponent |
RayleighTail | lower limit, standard deviation |
Levy | scale, exponent |
Gamma | par1, par2 |
Uniform | lower, upper |
Lognormal | offset, standard deviation |
FDist | degrees of freedom, degrees of freedom |
Beta | parameter a, parameter b |
Pareto | exponent, scale |
Weibull | scale, exponent |
GumbellI | A, B |
GumbellII | A, B |
data BivariateDist Source
BiGaussian | standard deviation, standard deviation, correlation coefficient |
:: ZeroParamDist | distribution type |
-> Int | random seed |
-> Double | result |
draw a sample from a zero parameter distribution
:: ZeroParamDist | density type |
-> DistFunc | distribution function type |
-> Double | value |
-> Double | result |
probability of a variate take a value outside the argument
:: OneParamDist | distribution type |
-> Int | random seed |
-> Double | parameter |
-> Double | result |
draw a sample from a one parameter distribution
:: OneParamDist | density type |
-> DistFunc | distribution function type |
-> Double | parameter |
-> Double | value |
-> Double | result |
probability of a variate take a value outside the argument
:: TwoParamDist | distribution type |
-> Int | random seed |
-> Double | parameter 1 |
-> Double | parameter 2 |
-> Double | result |
draw a sample from a two parameter distribution
:: TwoParamDist | density type |
-> DistFunc | distribution function type |
-> Double | parameter 1 |
-> Double | parameter 2 |
-> Double | value |
-> Double | result |
probability of a variate take a value outside the argument
:: ThreeParamDist | distribution type |
-> Int | random seed |
-> Double | parameter 1 |
-> Double | parameter 2 |
-> Double | parameter 3 |
-> Double | result |
draw a sample from a three parameter distribution
:: ThreeParamDist | density type |
-> DistFunc | distribution function type |
-> Double | parameter 1 |
-> Double | parameter 2 |
-> Double | parameter 3 |
-> Double | value |
-> Double | result |
probability of a variate take a value outside the argument
:: MultiParamDist | distribution type |
-> Int | random seed |
-> Vector Double | parameters |
-> Vector Double | result |
draw a sample from a three parameter distribution
:: MultiParamDist | density type |
-> DistFunc | distribution function type |
-> Vector Double | parameters |
-> Vector Double | values |
-> Double | result |
probability of a variate take a value outside the argument
:: BivariateDist | distribution type |
-> Int | random seed |
-> Double | parameter 1 |
-> Double | parameter 2 |
-> Double | parameter 3 |
-> (Double, Double) | result |
draw a sample from a bivariate distribution