Class VectorialMean
java.lang.Object
org.apache.commons.math3.stat.descriptive.moment.VectorialMean
- All Implemented Interfaces:
Serializable
Returns the arithmetic mean of the available vectors.
- Since:
- 1.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
VectorialMean
public VectorialMean(int dimension) Constructs a VectorialMean.- Parameters:
dimension
- vectors dimension
-
-
Method Details
-
increment
Add a new vector to the sample.- Parameters:
v
- vector to add- Throws:
DimensionMismatchException
- if the vector does not have the right dimension
-
getResult
public double[] getResult()Get the mean vector.- Returns:
- mean vector
-
getN
public long getN()Get the number of vectors in the sample.- Returns:
- number of vectors in the sample
-
hashCode
public int hashCode() -
equals
-