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 ComponentDistribution
x
- a matrix of dimension 1 x k, where k is the number of variablesorg.apache.commons.math3.linear.SingularMatrixException
public 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 ComponentDistribution
public void setMixingProportion(double pi)
setMixingProportion
in interface ComponentDistribution
public void setMean(org.apache.commons.math3.linear.RealMatrix mu)
setMean
in interface ComponentDistribution
public void setCovariance(org.apache.commons.math3.linear.RealMatrix sigma)
setCovariance
in interface ComponentDistribution
public double getMixingProportion()
getMixingProportion
in interface ComponentDistribution
public 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()