Function add_error_curve
Source pub fn add_error_curve(data: &FdMatrix, sd: f64, seed: Option<u64>) -> FdMatrix
Expand description
Add curve-level Gaussian noise to functional data.
Adds a constant noise term per curve: each observation in curve i
has the same noise value.
§Arguments
data - Data FdMatrix (n × m)
sd - Standard deviation of noise
seed - Optional random seed
§Returns
Noisy data FdMatrix (n × m)