Package org.hipparchus.stat.descriptive
Interface StorelessMultivariateStatistic
- All Known Implementing Classes:
VectorialStorelessStatistic
public interface StorelessMultivariateStatistic
Base interface implemented by storeless multivariate statistics.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the internal state of the statistic.intReturns the dimension of the statistic.longgetN()Returns the number of values that have been added.double[]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 Details
-
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
-