Package org.hipparchus.stat.descriptive
Interface StorelessMultivariateStatistic
-
- All Known Implementing Classes:
VectorialStorelessStatistic
public interface StorelessMultivariateStatisticBase interface implemented by storeless multivariate statistics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears the internal state of the statistic.intgetDimension()Returns the dimension of the statistic.longgetN()Returns the number of values that have been added.double[]getResult()Returns the current value of the Statistic.voidincrement(double[] d)Updates the internal state of the statistic to reflect the addition of the new value.
-
-
-
Method Detail
-
increment
void increment(double[] d)
Updates the internal state of the statistic to reflect the addition of the new value.- Parameters:
d- the new value
-
getResult
double[] getResult()
Returns the current value of the Statistic.- Returns:
- value of the statistic,
Double.NaNif it has been cleared or just instantiated.
-
getN
long getN()
Returns the number of values that have been added.- Returns:
- the number of values.
-
clear
void clear()
Clears the internal state of the statistic.
-
getDimension
int getDimension()
Returns the dimension of the statistic.- Returns:
- the dimension of the statistic
-
-