|
||||||||||
| 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 | |
|---|---|
long |
getN()
Get the number of vectors in the sample. |
double[] |
getResult()
Get the mean vector. |
void |
increment(double[] v)
Add a new vector to the sample. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||