Class Demixer
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.Demixer
Uses expectation-maximization to sort a a data set with data sampled from two or more multivariate Gaussian
distributions into its component data sets.
- Version:
- $Id: $Id
- Author:
- Madelyn Glymour
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondemix()
Runs the E-M algorithm iteratively until the weights array converges.boolean
isDemixed.
-
Constructor Details
-
Demixer
Constructor. Initializes the means, weights, and covariance matrices for each model.- Parameters:
data
- the data setk
- the number of models
-
-
Method Details
-
demix
Runs the E-M algorithm iteratively until the weights array converges. Returns a MixtureModel object containing the final values of the means, covariance matrices, weights, and gammas arrays.- Returns:
- a
MixtureModel
object
-
isDemixed
public boolean isDemixed()isDemixed.
- Returns:
- a boolean
-