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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"