|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.analysis.optimization.VectorialSampleStatistics
public class 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. |
DoubleSymmetricMatrix |
getCorrelationMatrix(DoubleSymmetricMatrix correlation)
Deprecated. as of 2004-03-11, replaced by getCovarianceMatrix. This method has in
fact always returned a |
DoubleSymmetricMatrix |
getCovarianceMatrix(DoubleSymmetricMatrix 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(double[] mean)
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
java.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 points
java.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 add
java.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(double[] mean)
mean - placeholder where to store the array, if null a new
array will be allocated
public DoubleSymmetricMatrix getCorrelationMatrix(DoubleSymmetricMatrix correlation)
getCovarianceMatrix. This method has in
fact always returned a
correlation - placeholder where to store the matrix, if null
a new matrix will be allocated
public DoubleSymmetricMatrix getCovarianceMatrix(DoubleSymmetricMatrix 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 | ||||||||