HNumeric-0.2.0.0: Haskell Numeric Library with pure functionality, R & MATLAB Syntax.

Safe HaskellSafe
LanguageHaskell2010

HNum.Stats

Synopsis

Documentation

type Coeff a = (a, a) Source #

mean :: Fractional a => Vector a -> a Source #

Expectation Value

cov' :: Floating a => Vector a -> Vector a -> a Source #

Covariance (Single-Valued)

var :: Floating a => Vector a -> a Source #

Variance

std :: Floating a => Vector a -> a Source #

Standard Deviation

cov :: Floating a => Vector a -> Vector a -> Matrix a Source #

Covariance Matrix

lm :: Floating a => Vector a -> Vector a -> Coeff a Source #

Least Square Method - (Intercept, Slope)

lineFit :: Floating a => Coeff a -> Vector a -> Vector a Source #

Line Fitting with (Intercept, Slope) & Range of x

rss :: Floating a => Vector a -> Vector a -> a Source #

Residual Sum of Squares

rse :: Floating a => Vector a -> Vector a -> a Source #

Relative Standard Error