public class EMModel extends MeanModel
Modifier and Type | Field and Description |
---|---|
private double[][] |
covarianceMatrix
Cluster covariance matrix
|
prototype
Constructor and Description |
---|
EMModel(double[] mean,
double[][] covarianceMatrix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
getCovarianceMatrix() |
void |
setCovarianceMatrix(double[][] covarianceMatrix) |
java.lang.String |
toString() |
void |
writeToText(TextWriterStream out,
java.lang.String label)
Implementation of
TextWriteable interface. |
getMean, getPrototypeType
getPrototype, prototypeToString
public EMModel(double[] mean, double[][] covarianceMatrix)
mean
- Mean vectorcovarianceMatrix
- Covariance matrixpublic void writeToText(TextWriterStream out, java.lang.String label)
PrototypeModel
TextWriteable
interface.writeToText
in interface Model
writeToText
in interface PrototypeModel<double[]>
writeToText
in interface TextWriteable
writeToText
in class SimplePrototypeModel<double[]>
out
- Output steamlabel
- Optional label to prefixpublic double[][] getCovarianceMatrix()
public void setCovarianceMatrix(double[][] covarianceMatrix)
covarianceMatrix
- covariance matrixpublic java.lang.String toString()
toString
in class SimplePrototypeModel<double[]>
Copyright © 2019 ELKI Development Team. License information.