pyacs.gts.lib.l1trend.statistics module

Statistics and model evaluation functions for L1-trend analysis.

pyacs.gts.lib.l1trend.statistics.get_stats_l1_model(x, y, fy, alpha, component_mask=None)[source]

Calculate statistics for L1-trend model evaluation.

Parameters:
  • x (numpy.ndarray) – Input time as 1D array

  • y (numpy.ndarray) – Input raw data as 1D array

  • fy (numpy.ndarray) – Input l1trend filtered data as 1D array

  • alpha (float) – Hyperparameter used for l1 filtering

  • component_mask (numpy.ndarray, optional) – Boolean mask indicating which data points should be considered for statistics. If None, all points are considered.

Returns:

(alpha, cchi2, sigma, cp, cchi2_probability, Cp, AICc, BIC)

Return type:

tuple