|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.stat.descriptive.moment.VectorialMean
public class VectorialMean
Returns the arithmetic mean of the available vectors.
| Constructor Summary | |
|---|---|
VectorialMean(int dimension)
Constructs a VectorialMean. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VectorialMean(int dimension)
dimension - vectors dimension| Method Detail |
|---|
public void increment(double[] v)
throws DimensionMismatchException
v - vector to add
DimensionMismatchException - if the vector does not have the right dimensionpublic double[] getResult()
public long getN()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||