public class VectorialStorelessStatistic extends Object implements StorelessMultivariateStatistic, Serializable
StorelessUnivariateStatistic
instance
for each component of a vector.Constructor and Description |
---|
VectorialStorelessStatistic(int dimension,
StorelessUnivariateStatistic univariateStatistic)
Create a new VectorialStorelessStatistic with the given dimension
and statistic implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the internal state of the statistic.
|
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
void |
increment(double[] d)
Updates the internal state of the statistic to reflect
the addition of the new value.
|
public VectorialStorelessStatistic(int dimension, StorelessUnivariateStatistic univariateStatistic)
dimension
- the vector dimensionunivariateStatistic
- the prototype statisticMathIllegalArgumentException
- if dimension < 1public void increment(double[] d)
increment
in interface StorelessMultivariateStatistic
d
- the new valuepublic double[] getResult()
getResult
in interface StorelessMultivariateStatistic
Double.NaN
if it
has been cleared or just instantiated.public long getN()
getN
in interface StorelessMultivariateStatistic
public void clear()
clear
in interface StorelessMultivariateStatistic
public int getDimension()
getDimension
in interface StorelessMultivariateStatistic
Copyright © 2016–2017 Hipparchus.org. All rights reserved.