From 937357e4bc55610f116f66d15a8e0fc1e260c02c Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 12 Oct 2021 13:08:16 +0200 Subject: Implemented ndpi_ses_fitting() and ndpi_des_fitting() for comuting the best alpha/beta values for exponential smoothing --- example/ndpiReader.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index e53803fea..d421e45dd 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -4191,6 +4191,8 @@ void sesUnitTest() { } if(fd) fclose(fd); + + ndpi_ses_fitting(v, num, &alpha); /* Compute the best alpha */ } /* *********************************************** */ @@ -4261,6 +4263,8 @@ void desUnitTest() { } if(fd) fclose(fd); + + ndpi_des_fitting(v, num, &alpha, &beta); /* Compute the best alpha/beta */ } /* *********************************************** */ -- cgit v1.2.3