Module ndarray_glm::utility

source ·
Expand description

utility functions for internal library use

Functions

Prepend the input with a column of ones. Used to incorporate a constant intercept term in a regression.
Returns a standardization of a design matrix where rows are seperate observations and columns are different dependent variables. Each quantity has its mean subtracted and is then divided by the standard deviation. The normalization by the standard deviation is not performed if there is only 1 observation, since such an operation is undefined.