skbio.stats.ordination.
scale
(a, weights=None, with_mean=True, with_std=True, ddof=0, copy=True)[source]¶Scale array by columns to have weighted average 0 and standard
State: Experimental as of 0.4.0. deviation 1.
Parameters: | a : array_like
weights : array_like, optional
with_mean : bool, optional, defaults to True
with_std : bool, optional, defaults to True
ddof : int, optional, defaults to 0
copy : bool, optional, defaults to True
|
---|---|
Returns: | 2D ndarray
|
Notes
Wherever std equals 0, it is replaced by 1 in order to avoid division by zero.