![]() |
![]() |
|
PLS_Toolbox Documentation: scale | < savgolcv | setpath > |
scale
Purpose
Scales data using specified means and std. devs.
Synopsis
sx = scale(x,means,stds)
Description
sx = scale(x,means) subtracts a vector means from a matrix x and returns the result as sx. If means is the vector of means this routine mean centers x.
sx = scale(x,means,stds) subtracts a vector means from a matrix x, divides each column by the corresponding element in the vector stds and returns the result as sx. If means is the vector of means and stds is the vector of standard deviations this routine atuo-scales x so that each column of sx has zero mean and unit variance.
See Also
auto, gscaler, medcn, mncn, npreprocess, preprocess, rescale
< savgolcv | setpath > |