T
- The type of number measuredpublic interface SeriesResult<T>
Modifier and Type | Method and Description |
---|---|
Map<Long,T> | getAll() Returns all measured values as a map from the tick to the value. |
Double | getAverage() Returns an average (arithmetic mean) of all measured values. |
Map<Long,Double> | getAveraged(long classWidth) Returns an averaged version of all values. |
long | getCount() Returns the number of measured values. |
Double | getDoubleMedian() Returns the median of all measured values. |
T | getMax() Returns the maximum value of all measured values. |
T | getMin() Returns the minimum value of all measured values. |
T | getNativeMedian() Returns the median of all measured values. |
T[] | getNativeMedians() Returns the median candidates of all measured values. |
Double | getStandardDeviation() Returns the standard deviation of all measured values. |
boolean | hasSingleMedian() Determines whether the series has one median (because it has an odd number of values, or because it is even and two median candidates are equal). |
Map<Long,T> getAll()
Map<Long,Double> getAveraged(long classWidth)
classWidth
. The returned map contains all averaged results as a map from the tick (the beginning, "left border" of the class) to the average value.classWidth
- the width in ticks for the classesDouble getAverage()
Double getDoubleMedian()
Double
, even if the measured values are integer and one median is present. For a more exact version, see getNativeMedian()
. If there are two median values (because the number of measurements is even), the arithmetic mean of the two values is returned.Double getStandardDeviation()
T getMin()
T getMax()
T[] getNativeMedians()
T getNativeMedian()
getDoubleMedian()
, this method returns an exact median if there is one median. If there are two median values, the returned value depends on the implemented measurement series, but will be performed in a mean-like way (possible rounded towards some integer value).boolean hasSingleMedian()
long getCount()
Copyright © 2015. All rights reserved.