diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2021-10-12 12:38:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 12:38:40 +0200 |
commit | d13bc0e01a46e666bd4d3cc553873b6a4961f799 (patch) | |
tree | 16b72618fd247e312e4ac1f4b10d4bbcb50ae2c4 | |
parent | 550e6fe6fcd96e507763db66873791b96f19fe2b (diff) |
Fixed DES initialisation
-rw-r--r-- | src/lib/ndpi_analyze.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index ee5c2e8fb..b8e009c6f 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -1243,7 +1243,8 @@ int ndpi_des_init(struct ndpi_des_struct *des, double alpha, double beta, float memset(des, 0, sizeof(struct ndpi_des_struct)); des->params.alpha = alpha; - + des->params.beta = beta; + if((significance < 0) || (significance > 1)) significance = 0.05; des->params.ro = ndpi_normal_cdf_inverse(1 - (significance / 2.)); |