public class VectorialMean extends Object implements Serializable
Constructor and Description |
---|
VectorialMean(int dimension)
Constructs a VectorialMean.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics