Skip to main content

center_1d

Function center_1d 

Source
pub fn center_1d(data: &[f64], n: usize, m: usize) -> Vec<f64>
Expand description

Center functional data by subtracting the mean function.

§Arguments

  • data - Column-major matrix (n x m)
  • n - Number of samples
  • m - Number of evaluation points

§Returns

Centered data matrix (column-major)