Skip to main content

stl_fdata

Function stl_fdata 

Source
pub fn stl_fdata(
    data: &[f64],
    n: usize,
    m: usize,
    _argvals: &[f64],
    period: usize,
    s_window: Option<usize>,
    t_window: Option<usize>,
    robust: bool,
) -> StlResult
Expand description

Wrapper function for functional data STL decomposition.

Computes STL decomposition for each curve in the functional data object and returns aggregated results.

§Arguments

  • data - Column-major matrix (n x m) of functional data
  • n - Number of samples (rows)
  • m - Number of evaluation points (columns)
  • argvals - Time points of length m (used to infer period if needed)
  • period - Seasonal period (in number of observations)
  • s_window - Seasonal smoothing window
  • t_window - Trend smoothing window (0 for auto)
  • robust - Whether to use robustness iterations

§Returns

StlResult with decomposed components.