public class MultivariateGaussianEstimator extends java.lang.Object implements MultivariateEstimator, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static double |
Log2PI
Log of twice the number pi: log(2*pi).
|
Constructor and Description |
---|
MultivariateGaussianEstimator() |
Modifier and Type | Method and Description |
---|---|
void |
estimate(double[][] observations,
double[] weights)
Generates the estimator based on the given observations and weight vector.
|
double[][] |
estimatePooled(double[][][] observations,
double[][] weights)
Generates pooled estimator for linear discriminant analysis based on the given groups of
observations and weight vectors.
|
double[] |
getMean()
Returns the mean vector.
|
double |
getRidge()
Get the value of Ridge.
|
double |
logDensity(double[] valuePassed)
Returns the log of the density value for the given vector.
|
static void |
main(java.lang.String[] args)
Main method for testing this class.
|
java.lang.String |
ridgeTipText()
Returns the tip text for this property
|
void |
setRidge(double newRidge)
Set the value of Ridge.
|
java.lang.String |
toString()
Returns string summarizing the estimator.
|
public java.lang.String toString()
toString
in class java.lang.Object
public double[] getMean()
public double logDensity(double[] valuePassed)
logDensity
in interface MultivariateEstimator
valuePassed
- input vectorpublic void estimate(double[][] observations, double[] weights)
estimate
in interface MultivariateEstimator
observations
- the value to addweights
- the weight of the valuepublic double[][] estimatePooled(double[][][] observations, double[][] weights)
public java.lang.String ridgeTipText()
public double getRidge()
public void setRidge(double newRidge)
newRidge
- Value to assign to Ridge.public static void main(java.lang.String[] args)
args
- command-line parameters