public class VectorialSampleStatistics
extends java.lang.Object
| Constructor and Description |
|---|
VectorialSampleStatistics()
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public VectorialSampleStatistics()
public void add(double[] x)
x - value of the sample pointjava.lang.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 pointsjava.lang.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 addjava.lang.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 allocatedCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.