aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-04-08 09:52:14 +0200
committerLuca Deri <deri@ntop.org>2023-04-08 09:52:14 +0200
commitc47e9d201d57acf9e4946e47cd63aac3b506ce7c (patch)
treece444f11676e03ae45c6400bff896bb33a6aabe2 /src/include/ndpi_api.h
parent7714507f816b36055ca25c67b6228637bd600cf9 (diff)
Implemented ndpi_XXX_reset() API calls whre XXX is ses, des, hw
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index d3b02a4d5..2edcd69ad 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -1714,13 +1714,15 @@ extern "C" {
double alpha, double beta, double gamma, float significance);
void ndpi_hw_free(struct ndpi_hw_struct *hw);
int ndpi_hw_add_value(struct ndpi_hw_struct *hw, const u_int64_t value, double *forecast, double *confidence_band);
-
+ void ndpi_hw_reset(struct ndpi_hw_struct *hw);
+
/* ******************************* */
int ndpi_ses_init(struct ndpi_ses_struct *ses, double alpha, float significance);
int ndpi_ses_add_value(struct ndpi_ses_struct *ses, const double _value, double *forecast, double *confidence_band);
void ndpi_ses_fitting(double *values, u_int32_t num_values, float *ret_alpha);
-
+ void ndpi_ses_reset(struct ndpi_ses_struct *ses);
+
/* ******************************* */
u_int32_t ndpi_crc32(const void* data, size_t n_bytes);
@@ -1730,7 +1732,8 @@ extern "C" {
int ndpi_des_init(struct ndpi_des_struct *des, double alpha, double beta, float significance);
int ndpi_des_add_value(struct ndpi_des_struct *des, const double _value, double *forecast, double *confidence_band);
void ndpi_des_fitting(double *values, u_int32_t num_values, float *ret_alpha, float *ret_beta);
-
+ void ndpi_des_reset(struct ndpi_des_struct *des);
+
/* ******************************* */
int ndpi_jitter_init(struct ndpi_jitter_struct *hw, u_int16_t num_periods);