pub fn scale(
x: &Array2<Float>,
axis: usize,
with_mean: bool,
with_std: bool,
) -> Result<Array2<Float>>Expand description
Standardize a dataset along any axis
Center to the mean and component wise scale to unit variance.
§Arguments
x- The data to scaleaxis- Axis along which to compute mean and std (0 for features, 1 for samples)with_mean- If true, center the data before scalingwith_std- If true, scale the data to unit variance
§Returns
Scaled data