Functions for statistics

;; All functions work on integers and floats or a mix of both. are normal
;; LISP lists. are lists of lists, one list for each row in the
;; two dimensional data matrix. See the function 'stat:matrix' on how to make matrices
;; from lists.
;;
;; In version 3.0 of 'stat.lsp' the usage for Gnuplot the stat:plot and stat:plotXY
;; functions has been eliminated. Instead use the module 'plot.lsp' shipped with all binary and
;; source distributions. The F-distribution function 'f-prob' has also been eliminated
;; instead use one of new the built-in 'prob-f' or 'crit-f' functions.
;;
;; The documention contains only the call patterns. See the source for more
;; documentation.
;;
;;

Summary of functions

;;

General uni- and bi- variate statistics

;;

;; stat:sum - sum of a vector of numbers (see also built-in stats since 10.4.2)
;; stat:mean - arithmetik mean of a vector of numbers (see also built-in stats since 10.4.2)
;; stat:var - estimated variance of numbers in a vector sample
;; stat:sdev - estimated standard deviation of numbers in a vector (see also built-in stats since 10.4.2)
;; stat:sum-sq - sum of squares of a data vector
;; stat:sum-xy - sum of products of a two data vectors
;; stat:corr - correlation coefficient between two vectors (built-in since 10.4.2)
;; stat:cov - covariance of two number vectors
;; stat:sum-d2 - sum of squared differences of a vector from its mean
;; stat:sum-d2xy - sum of squared diffferences of two vectors
;; stat:regression - calculates the intecept and slope of a regression estimate
;; stat:fit - return the fitted line using regression coefficients
;; stat:moments - calulates 1st to 3rd moments from a vector of numbers
;;

Matrix and list utilities

;;

;; stat:matrix - make a matrix from column vectors
;; stat:diagonal - make a diagonal matrix
;; stat:get-diagonal - return the diagonal of a matrix in a vector
;; stat:mat-map - map a binary function on to matrices
;;