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_typedefs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/include/ndpi_typedefs.h') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 2aacf847a..0db1ccf91 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1369,6 +1369,11 @@ struct ndpi_analyze_struct { u_int32_t *values; u_int32_t sum_total, num_data_entries, next_value_insert_index; u_int16_t num_values_array_len /* lenght of the values array */; + + struct { + /* https://www.johndcook.com/blog/standard_deviation/ */ + float mu, q; + } stddev; }; #define DEFAULT_SERIES_LEN 64 -- cgit v1.2.3