Module

Statistics.Distribution.Normal

Package
purescript-stats
Repository
klangner/purescript-stats

#normalDistr Source

normalDistr :: Number -> Number -> NormalDistribution

Create normal distribution from mean and standard deviation Use this function only when you are sure that sd > 0. Otherwise use safe normalDistrE

#normalDistrE Source

normalDistrE :: Number -> Number -> Maybe NormalDistribution

Create normal distribution in a safe way

#standard Source

standard :: NormalDistribution

Standard normal distribution with mean equal to 0 and variance equal to 1

#fromSample Source

fromSample :: Sample Number -> Maybe NormalDistribution

Create distribution using parameters estimated from sample. Variance is estimated using maximum likelihood method (biased estimation).