public class VectorialMean
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
VectorialMean(int dimension)
Constructs a VectorialMean.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getN()
Get the number of vectors in the sample.
|
double[] |
getResult()
Get the mean vector.
|
int |
hashCode() |
void |
increment(double[] v)
Add a new vector to the sample.
|
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 © 2010 - 2023 Adobe. All Rights Reserved