#ifndef ZABBIX_ANOMALYSTL_H
#define ZABBIX_ANOMALYSTL_H
#define STL_DEF_DEVIATIONS 3
#define T_WINDOW_DEF ZBX_INFINITY
int zbx_STL(const zbx_vector_history_record_t *values_in, int freq, int is_robust, int s_window, int s_degree,
double t_window, int t_degree, int l_window, int l_degree, int nsjump, int ntjump, int nljump,
int inner, int outer, zbx_vector_history_record_t *trend, zbx_vector_history_record_t *seasonal,
zbx_vector_history_record_t *remainder, char **error);
int zbx_get_percentage_of_deviations_in_stl_remainder(const zbx_vector_history_record_t *remainder,
double deviations_count, const char* devalg, int detect_period_start, int detect_period_end,
double *result, char **error);