public class MvNormalComponentDistribution extends java.lang.Object implements ComponentDistribution
| Constructor and Description |
|---|
MvNormalComponentDistribution(int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
density(org.apache.commons.math3.linear.RealMatrix x) |
void |
generateStartValues(org.apache.commons.math3.linear.RealMatrix x,
org.apache.commons.math3.linear.RealMatrix mean,
org.apache.commons.math3.linear.RealMatrix cov) |
org.apache.commons.math3.linear.RealMatrix |
getCov() |
org.apache.commons.math3.linear.RealMatrix |
getMean() |
double |
getMixingProportion() |
java.lang.String |
printCovariance() |
java.lang.String |
printMean() |
java.lang.String |
printMixingProportion() |
void |
setCovariance(org.apache.commons.math3.linear.RealMatrix sigma) |
void |
setMean(org.apache.commons.math3.linear.RealMatrix mu) |
void |
setMixingProportion(double pi) |
public MvNormalComponentDistribution(int dimensions)
public double density(org.apache.commons.math3.linear.RealMatrix x)
throws org.apache.commons.math3.linear.SingularMatrixException
density in interface ComponentDistributionx - a matrix of dimension 1 x k, where k is the number of variablesorg.apache.commons.math3.linear.SingularMatrixExceptionpublic void generateStartValues(org.apache.commons.math3.linear.RealMatrix x,
org.apache.commons.math3.linear.RealMatrix mean,
org.apache.commons.math3.linear.RealMatrix cov)
generateStartValues in interface ComponentDistributionpublic void setMixingProportion(double pi)
setMixingProportion in interface ComponentDistributionpublic void setMean(org.apache.commons.math3.linear.RealMatrix mu)
setMean in interface ComponentDistributionpublic void setCovariance(org.apache.commons.math3.linear.RealMatrix sigma)
setCovariance in interface ComponentDistributionpublic double getMixingProportion()
getMixingProportion in interface ComponentDistributionpublic org.apache.commons.math3.linear.RealMatrix getMean()
public org.apache.commons.math3.linear.RealMatrix getCov()
public java.lang.String printMixingProportion()
public java.lang.String printMean()
public java.lang.String printCovariance()