public class VectorialCovariance extends Object implements Serializable
Constructor and Description |
---|
VectorialCovariance(int dimension,
boolean isBiasCorrectedIn)
Constructs a VectorialCovariance.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the internal state of the Statistic
|
boolean |
equals(Object obj) |
long |
getN()
Get the number of vectors in the sample.
|
RealMatrix |
getResult()
Get the covariance matrix.
|
int |
hashCode() |
void |
increment(double[] v)
Add a new vector to the sample.
|
public VectorialCovariance(int dimension, boolean isBiasCorrectedIn)
dimension
- vectors dimensionisBiasCorrectedIn
- if true, computed the unbiased sample covariance,
otherwise computes the biased population covariancepublic void increment(double[] v)
v
- vector to addDimensionMismatchException
- if the vector does not have the right dimensionpublic RealMatrix getResult()
public long getN()
public void clear()
Copyright © 2017 CNES. All rights reserved.