public class VectorialCovariance extends Object implements Serializable
| Constructor and Description |
|---|
VectorialCovariance(int dimension,
boolean isBiasCorrected)
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 isBiasCorrected)
dimension - vectors dimensionisBiasCorrected - if true, computed the unbiased sample covariance,
otherwise computes the biased population covariancepublic void increment(double[] v)
throws DimensionMismatchException
v - vector to addDimensionMismatchException - if the vector does not have the right dimensionpublic RealMatrix getResult()
public long getN()
public void clear()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.