Package org.hipparchus.stat.descriptive
Interface StorelessMultivariateStatistic
-
- All Known Implementing Classes:
VectorialStorelessStatistic
public interface StorelessMultivariateStatistic
Base interface implemented by storeless multivariate statistics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears the internal state of the statistic.int
getDimension()
Returns the dimension of the statistic.long
getN()
Returns the number of values that have been added.double[]
getResult()
Returns the current value of the Statistic.void
increment(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.NaN
if 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
-
-