diff options
author | Luca Deri <deri@ntop.org> | 2021-10-12 13:08:16 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-10-12 13:08:58 +0200 |
commit | 937357e4bc55610f116f66d15a8e0fc1e260c02c (patch) | |
tree | 747dee6e1f6751dd44ab1dab9086cde85304cfe7 /example/ndpiReader.c | |
parent | d947437233f2e6af6e2a74bc4844a7b427f9d45e (diff) |
Implemented ndpi_ses_fitting() and ndpi_des_fitting()
for comuting the best alpha/beta values for exponential smoothing
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ } /* *********************************************** */ |