pub fn shape_confidence_interval(
data: &FdMatrix,
argvals: &[f64],
config: &ShapeCiConfig,
) -> Result<ShapeCiResult, FdarError>Expand description
Compute bootstrap confidence intervals for the elastic Karcher mean.
Resamples the input curves with replacement, computes the Karcher mean of each bootstrap sample, aligns each bootstrap mean to the full-sample mean, and derives pointwise confidence bands from the empirical quantiles.
§Arguments
data- Functional data matrix (n x m).argvals- Evaluation points (length m).config- Bootstrap configuration.
§Errors
Returns FdarError::InvalidDimension if n < 3 or argvals length
does not match m.
Returns FdarError::InvalidParameter if confidence_level is not in
(0, 1) or n_bootstrap < 1.