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 formatn- Number of samplesm- Number of evaluation pointssd- Standard deviation of noiseseed- Optional random seed
§Returns
Noisy data matrix (n × m) in column-major format