diff options
author | Luca Deri <deri@ntop.org> | 2020-07-03 14:45:58 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-07-03 14:45:58 +0200 |
commit | 503e3bb4953b4c9de818d997593bfe4f090013bf (patch) | |
tree | 9256e5e3ebea6c264ae4a79b0377ccf272d9464b /src | |
parent | 513c857631defa7c9b9c3416ce7f97eb2bfd061c (diff) |
Added comment on stddev
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_analyze.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index eaa0d30c2..4ca3ac25a 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -125,6 +125,12 @@ float ndpi_data_variance(struct ndpi_analyze_struct *s) { /* ********************************************************************************* */ +/* + See the link below for "Population and sample standard deviation review" + https://www.khanacademy.org/math/statistics-probability/summarizing-quantitative-data/variance-standard-deviation-sample/a/population-and-sample-standard-deviation-review + + In nDPI we use an approximate stddev calculation to avoid storing all data in memory +*/ /* Compute the standard deviation on all values */ float ndpi_data_stddev(struct ndpi_analyze_struct *s) { return(sqrt(ndpi_data_variance(s))); |