public abstract class Statistics extends Object
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 and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
abstract double |
getAverage()
The average value.
|
abstract int |
getCount()
The number of values (excluding NaN) included in the set.
|
abstract Range |
getRange()
The range of the values.
|
abstract double |
getStdDev()
The standard deviation.
|
public abstract Range getRange()
public abstract int getCount()
public abstract double getAverage()
public abstract double getStdDev()
Copyright © 2015. All rights reserved.