Package org.yamcs.studio.data.formula
Class Statistics
java.lang.Object
org.yamcs.studio.data.formula.Statistics
The statistics of a given set of numbers.
For the purpose of statistics calculation, NaNs should be skipped. That is, they should not appear as minimum, maximum, average or stdDev, and shouldn't even be included in the count. The number of elements (including NaNs) will be available from the number set used to create the statistics. This can be useful to determine whether the set actually contained any valid values and therefore if there is anything to do.
The appropriate Statistics instance for an unknown set, or for a set of NaN values, is null.
-
Constructor Details
-
Statistics
public Statistics()
-
-
Method Details
-
getRange
The range of the values.- Returns:
- the range
-
getCount
public abstract int getCount()The number of values (excluding NaN) included in the set.- Returns:
- the number of values
-
getAverage
public abstract double getAverage()The average value.- Returns:
- the average value
-
getStdDev
public abstract double getStdDev()The standard deviation.- Returns:
- the standard deviation
-