marytts.machinelearning
Class GMM

java.lang.Object
  extended by marytts.machinelearning.GMM

public class GMM
extends java.lang.Object

Wrapper for a Gaussian Mixture Model

Author:
Oytun Türk

Field Summary
 GaussianComponent[] components
           
 int featureDimension
           
 java.lang.String info
           
 boolean isDiagonalCovariance
           
 int totalComponents
           
 double[] weights
           
 
Constructor Summary
GMM()
           
GMM(GMM existing)
           
GMM(int featureDimensionIn, int totalMixturesIn)
           
GMM(int featureDimensionIn, int totalComponentsIn, boolean isDiagonalCovarIn)
           
GMM(KMeansClusteringTrainer kmeansClusterer)
           
GMM(java.lang.String gmmFile)
           
 
Method Summary
 double[] componentProbabilities(double[] x)
           
 void init(int featureDimensionIn, int totalMixturesIn, boolean isDiagonalCovarIn)
           
 double probability(double[] x)
           
 void read(MaryRandomAccessFile stream)
           
 void read(java.lang.String gmmFile)
           
 void write(MaryRandomAccessFile stream)
           
 void write(java.lang.String gmmFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weights

public double[] weights

components

public GaussianComponent[] components

info

public java.lang.String info

featureDimension

public int featureDimension

totalComponents

public int totalComponents

isDiagonalCovariance

public boolean isDiagonalCovariance
Constructor Detail

GMM

public GMM()

GMM

public GMM(int featureDimensionIn,
           int totalMixturesIn)

GMM

public GMM(int featureDimensionIn,
           int totalComponentsIn,
           boolean isDiagonalCovarIn)

GMM

public GMM(KMeansClusteringTrainer kmeansClusterer)

GMM

public GMM(GMM existing)

GMM

public GMM(java.lang.String gmmFile)
Method Detail

init

public void init(int featureDimensionIn,
                 int totalMixturesIn,
                 boolean isDiagonalCovarIn)

probability

public double probability(double[] x)

componentProbabilities

public double[] componentProbabilities(double[] x)

write

public void write(java.lang.String gmmFile)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(MaryRandomAccessFile stream)
           throws java.io.IOException
Throws:
java.io.IOException

read

public void read(java.lang.String gmmFile)
          throws java.io.IOException
Throws:
java.io.IOException

read

public void read(MaryRandomAccessFile stream)
          throws java.io.IOException
Throws:
java.io.IOException