analysis: add standard deviation to the segment store statistics
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 2 Dec 2015 22:15:55 +0000 (17:15 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 9 Dec 2015 16:18:08 +0000 (11:18 -0500)
commit2d626d38309943a9b40a819909804d8a4a17beaf
treea4969b836a5d3179851cdab997b87c4f9a8aeb6b
parentb70c55afd0b1831402e2251aeed1e96aa0bc3061
analysis: add standard deviation to the segment store statistics

This patch will be useful for extracting more key metrics and flagging
outlyer segments.

Some reminders:

The standard deviation is the square root of the variance. The variance
is the sum of squared elements divided by the cardinality of a list. To
calculate the standard deviation incrementally, we keep an accumulator
of all the squares of a latency. This is then divided when needed by the
number of elements (segments) and square rooted.

Also, this patch calculates an online mean with less rounding errors.

Change-Id: Ia918f08f2351d7086bd05aac1ad645cfff13eb58
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61824
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/latency/statistics/SegmentStoreStatistics.java
This page took 0.025969 seconds and 5 git commands to generate.