From e4e40e3c70e2cd49fd537a526fa70805c8c391c5 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 28 Aug 2019 14:02:39 +0200 Subject: Added entropy, average, stddev, variance, bytes ratio calculation --- src/include/ndpi_api.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/include/ndpi_api.h') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 03f21d4cd..c6d17a4b5 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -899,8 +899,11 @@ extern "C" { float ndpi_data_average(struct ndpi_analyze_struct *s); float ndpi_data_window_average(struct ndpi_analyze_struct *s); - float ndpi_entropy(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); + float ndpi_data_ratio(u_int32_t sent, u_int32_t rcvd); + void ndpi_data_print_window_values(struct ndpi_analyze_struct *s); /* debug */ #ifdef __cplusplus } -- cgit v1.2.3