Skip to contents

Extract STL decomposition features from a tsibble produced by prepare_source_tsibble(). Returns summary statistics (mean, sd, sum) together with trend and seasonality strength and the coefficient of variation.

Usage

compute_source_features(tst)

Arguments

tst

A tsibble as returned by prepare_source_tsibble(), with column N and key fonte.

Value

A tibble with one row per source containing columns: fonte, mea (mean), sd (standard deviation), sum (total), trend/seasonality strength from feasts::feat_stl(), and cv (coefficient of variation = sd / mean).