add_error_pointwise

Function add_error_pointwise 

Source
pub fn add_error_pointwise(
    data: &[f64],
    _n: usize,
    _m: usize,
    sd: f64,
    seed: Option<u64>,
) -> Vec<f64>
Expand description

Add pointwise Gaussian noise to functional data.

Adds independent N(0, σ²) noise to each point.

§Arguments

  • data - Data matrix (n × m) in column-major format
  • n - Number of samples
  • m - Number of evaluation points
  • sd - Standard deviation of noise
  • seed - Optional random seed

§Returns

Noisy data matrix (n × m) in column-major format