scale

Function scale 

Source
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 scale
  • axis - Axis along which to compute mean and std (0 for features, 1 for samples)
  • with_mean - If true, center the data before scaling
  • with_std - If true, scale the data to unit variance

§Returns

Scaled data