1. Bryan O'Sullivan
  2. statistics

Source

statistics / Statistics / Distribution / Gamma.hs

Author Commit Message Date Builds
Aleksey Khudyakov
Add logDensity for gamma distr.
Daniel Fox Franke
MaybeEntropy instance for GammaDistribution
Bryan O'Sullivan
Add Binary instances
Bryan O'Sullivan
Add GHC generics support everywhere
Aleksey Khudyakov
Add ContGen instances for gamma,χ², exponential, F and student distributions
Aleksey Khudyakov
Add improper constructor for gamma distribution
Aleksey Khudyakov
Use math-functions
Aleksey Khudyakov
Document behavior of quantile outside of [0,1] range. It shoud call error. Test is added to ensure this behaviour Fix quantiles for chi square and gamma distributions for p=0 along the way. fix #6
Aleksey Khudyakov
Fix quantile estimations for chi square and gamma distributions.
Aleksey Khudyakov
Rework type class structure for distributions statistics Some distributions do not have variance or mean for some values of parameters. Student-T is an example. Simplest solution is to return NaN but it's way too implict One option is change Mean (and Variance) type class: > class Mean d where > mean :: d → Maybe Double But it would be really annoying to unwrap Just constructor for distribution which have mean defined for all parameters. It also en…
Bryan O'Sullivan
Update copyright years.
Bryan O'Sullivan
Share the fast accurate Poisson between Gamma and Poisson.
Bryan O'Sullivan
Fix typo.
finlay
Better gamma density function Taken from the algorithim published by Catherine Loader
Bryan O'Sullivan
Fix definitions of mean and variance for gamma distribution
Aleksey Khudyakov
Throw errors in smart constructors of the distribution if parameters are invalid
Aleksey Khudyakov
Fix distibution for Gamma * incompleteGamma is already normalized. There is no need to divide by gamma twice * Check when x <= 0 in cumulative and density
Aleksey Khudyakov
Add constructor for Gamma distribution
Aleksey Khudyakov
Change type class structure for distributions type class for distribution is split into 3, for discrete distributions, for continuous and general. All distributions. Are rewritten to accomodate new structure. There are may be problems with loss of precision at border cases. This should be checked
Bryan O'Sullivan
Rename inverse to quantile, again per Pat Perry.'
Bryan O'Sullivan
Rename probability to density, fix docs. Suggested by Patrick Perry.
Bryan O'Sullivan
Implement the incomplete gamma function.
Bryan O'Sullivan
Add most of the gamma distribution.