From 46e97d5da394aed103b6e41336699c7209fb03b0 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 15 Jul 2020 18:13:06 +0200 Subject: Added ndpi_data_window_variance() and ndpi_data_window_stddev() API calls --- src/include/ndpi_api.h.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index c272d66c8..5d77d6221 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -1030,9 +1030,13 @@ extern "C" { void ndpi_free_data_analysis(struct ndpi_analyze_struct *d); void ndpi_data_add_value(struct ndpi_analyze_struct *s, const u_int32_t value); - float ndpi_data_average(struct ndpi_analyze_struct *s); + /* Sliding-window only */ float ndpi_data_window_average(struct ndpi_analyze_struct *s); + float ndpi_data_window_variance(struct ndpi_analyze_struct *s); + float ndpi_data_window_stddev(struct ndpi_analyze_struct *s); + /* All data */ + float ndpi_data_average(struct ndpi_analyze_struct *s); float ndpi_data_entropy(struct ndpi_analyze_struct *s); float ndpi_data_variance(struct ndpi_analyze_struct *s); float ndpi_data_stddev(struct ndpi_analyze_struct *s); -- cgit v1.2.3