public class MeanAndCovariance extends Object
Modifier and Type | Field and Description |
---|---|
Jama.Matrix |
covar
The covariance matrix (NxN)
|
Jama.Matrix |
mean
The mean vector (1xN)
|
Constructor and Description |
---|
MeanAndCovariance(double[][] samples)
Construct a new
MeanAndCovariance containing the mean vector and
covariance matrix of the given data (each row is a data point) |
MeanAndCovariance(float[][] samples)
Construct a new
MeanAndCovariance containing the mean vector and
covariance matrix of the given data (each row is a data point) |
MeanAndCovariance(Jama.Matrix samples)
Construct a new
MeanAndCovariance containing the mean vector and
covariance matrix of the given data (each row is a data point) |
Modifier and Type | Method and Description |
---|---|
static Jama.Matrix |
computeCovariance(double[][] samples)
Get the covariance of the data
|
static Jama.Matrix |
computeCovariance(float[][] samples)
Get the covariance of the data
|
static Jama.Matrix |
computeCovariance(Jama.Matrix samples)
Get the covariance of the data
|
static Jama.Matrix |
computeMean(double[][] samples)
Get the mean of the data
|
static Jama.Matrix |
computeMean(float[][] samples)
Get the mean of the data
|
static Jama.Matrix |
computeMean(Jama.Matrix samples)
Get the mean of the data
|
Jama.Matrix |
getCovariance()
Get the covariance matrix
|
Jama.Matrix |
getMean()
Get the mean vector
|
public final Jama.Matrix mean
public final Jama.Matrix covar
public MeanAndCovariance(float[][] samples)
MeanAndCovariance
containing the mean vector and
covariance matrix of the given data (each row is a data point)samples
- the datapublic MeanAndCovariance(double[][] samples)
MeanAndCovariance
containing the mean vector and
covariance matrix of the given data (each row is a data point)samples
- the datapublic MeanAndCovariance(Jama.Matrix samples)
MeanAndCovariance
containing the mean vector and
covariance matrix of the given data (each row is a data point)samples
- the datapublic Jama.Matrix getMean()
public Jama.Matrix getCovariance()
public static Jama.Matrix computeMean(float[][] samples)
samples
- the datapublic static Jama.Matrix computeCovariance(float[][] samples)
samples
- the datapublic static Jama.Matrix computeMean(double[][] samples)
samples
- the datapublic static Jama.Matrix computeCovariance(double[][] samples)
samples
- the datapublic static Jama.Matrix computeMean(Jama.Matrix samples)
samples
- the datapublic static Jama.Matrix computeCovariance(Jama.Matrix samples)
samples
- the data