HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestatistics-0.16.3.0Haskell2010

Statistics.Sample.Normalize

Functions for normalizing samples.

  • 1 value
valuestandardize :: Vector v Double => v Double -> Maybe (v Double)
#

O(n) Normalize a sample using standard scores:

z = \frac{x - \mu}{\sigma}

Where μ is sample mean and σ is standard deviation computed from unbiased variance estimation. If sample to small to compute σ or it's equal to 0 Nothing is returned.