public class VectorialMean
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private Mean[] |
means
Means for each component.
|
private static long |
serialVersionUID
Serializable version identifier
|
| Constructor and Description |
|---|
VectorialMean(int dimension)
Constructs a VectorialMean.
|
private static final long serialVersionUID
private final Mean[] means
public VectorialMean(int dimension)
dimension - vectors dimensionpublic void increment(double[] v)
throws DimensionMismatchException
v - vector to addDimensionMismatchException - if the vector does not have the right dimensionpublic double[] getResult()
public long getN()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright (c) 2003-2013 Apache Software Foundation