|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.random.VectorialSampleStatistics
This class compute basic statistics on a scalar sample.
| Constructor Summary | |
VectorialSampleStatistics()
Simple constructor. |
|
| Method Summary | |
void |
add(double[] x)
Add one point to the instance. |
void |
add(double[][] points)
Add all points of an array to the instance. |
void |
add(VectorialSampleStatistics s)
Add all the points of another sample to the instance. |
SymetricalMatrix |
getCovarianceMatrix(SymetricalMatrix covariance)
Get the covariance matrix of the underlying law. |
double[] |
getMax()
Get the maximal value in the sample. |
int[] |
getMaxIndices()
Get the indices at which the maximal value occurred in the sample. |
double[] |
getMean()
Get the mean value of the sample. |
double[] |
getMin()
Get the minimal value in the sample. |
int[] |
getMinIndices()
Get the indices at which the minimal value occurred in the sample. |
int |
size()
Get the number of points in the sample. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VectorialSampleStatistics()
| Method Detail |
public void add(double[] x)
x - value of the sample point
IllegalArgumentException - if there is a dimension
mismatch between this point and the ones already added (this
cannot happen when the instance is empty)public void add(double[][] points)
points - array of points
IllegalArgumentException - if there is a dimension
mismatch between these points and the ones already added (this
cannot happen when the instance is empty)public void add(VectorialSampleStatistics s)
s - samples to add
IllegalArgumentException - if there is a dimension
mismatch between this sample points and the ones already added
(this cannot happen when the instance is empty)public int size()
public double[] getMin()
Since all components of the sample vector can reach their
minimal value at different times, this vector should be
considered as gathering all minimas of all components. The index
of the sample at which the minimum was encountered can be
retrieved with the getMinIndices
method.
getMinIndices()public int[] getMinIndices()
getMin()public double[] getMax()
Since all components of the sample vector can reach their
maximal value at different times, this vector should be
considered as gathering all maximas of all components. The index
of the sample at which the maximum was encountered can be
retrieved with the getMaxIndices
method.
getMaxIndices()public int[] getMaxIndices()
getMax()public double[] getMean()
public SymetricalMatrix getCovarianceMatrix(SymetricalMatrix covariance)
covariance - placeholder where to store the matrix, if null
a new matrix will be allocated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||