|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gtts.sautrela.wfsa.models.GaussianMixture
public class GaussianMixture
| Constructor Summary | |
|---|---|
GaussianMixture(org.xml.sax.InputSource is)
Creates a GaussianMixture using an XML description found via an InputSource |
|
GaussianMixture(java.lang.String name,
boolean trainWeigth,
boolean trainMean,
boolean trainVar,
boolean splitIfOrphan)
Creates a new instance of GaussianSet |
|
| Method Summary | |
|---|---|
void |
add(Gaussian g,
double w)
|
void |
addFastTrain(double[] x)
|
void |
addTrain(double[] x)
|
void |
addTrain(double[] x,
double count)
|
double[] |
addTrainGamma(double[] x)
|
double[] |
addTrainGamma(double[] x,
double count)
|
GaussianMixture |
clone()
Returns a copy of this GaussianMixture. |
double |
dumpTrain()
|
double |
dumpTrain(GaussianMixture[] clones)
|
Gaussian |
get(int i)
|
java.lang.String |
getName()
|
double |
getProb(double[] x)
|
double[] |
getRandomData()
|
double |
getWeight(int i)
|
void |
initTrain(double initCount)
|
void |
initTrain(double initCount,
int topN)
|
boolean |
isSplitIfOrphan()
|
boolean |
isTrainMean()
|
boolean |
isTrainVar()
|
boolean |
isTrainWeigth()
|
static void |
main(java.lang.String[] args)
GaussianMixture - create/resize/modify GMMs. |
void |
remove()
Remove the lowest weight gaussian |
void |
remove(int i)
|
void |
resize(int newSize,
int newDim)
Resize the Gaussians number and dimension. |
void |
setSplitIfOrphan(boolean flag)
|
void |
setTrainMean(boolean flag)
|
void |
setTrainVar(boolean flag)
|
void |
setTrainWeigth(boolean flag)
|
int |
size()
|
void |
split()
Split the highest weight gaussian |
java.lang.String |
toXML()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GaussianMixture(java.lang.String name,
boolean trainWeigth,
boolean trainMean,
boolean trainVar,
boolean splitIfOrphan)
public GaussianMixture(org.xml.sax.InputSource is)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
InputSource
is - the InputSource used to locate the XML description
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException| Method Detail |
|---|
public void add(Gaussian g,
double w)
public void remove(int i)
public Gaussian get(int i)
public double getWeight(int i)
public int size()
public java.lang.String getName()
public boolean isTrainWeigth()
public void setTrainWeigth(boolean flag)
public boolean isSplitIfOrphan()
public void setSplitIfOrphan(boolean flag)
public boolean isTrainMean()
public void setTrainMean(boolean flag)
public boolean isTrainVar()
public void setTrainVar(boolean flag)
public GaussianMixture clone()
clone in class java.lang.Objectpublic void split()
public void remove()
public void resize(int newSize,
int newDim)
newSize - new number of gaussians, or 0 for no resizenewDim - new dimension of gaussians, or 0 for no resizepublic double getProb(double[] x)
public double[] getRandomData()
public void initTrain(double initCount)
public void initTrain(double initCount,
int topN)
public void addTrain(double[] x)
public double[] addTrainGamma(double[] x)
public void addTrain(double[] x,
double count)
public double[] addTrainGamma(double[] x,
double count)
public void addFastTrain(double[] x)
public double dumpTrain()
public double dumpTrain(GaussianMixture[] clones)
public java.lang.String toXML()
public static void main(java.lang.String[] args)
Syntax: GaussianMixture [-sSmMvVwW] [-n name] [-N gNum] [-D gDim] [URL]
-s Turn off high weigth gaussian spliting and discard orphans.
-S Turn on high weigth gaussian spliting and discard orphans.
-m Turn off means training.
-M Turn on means training.
-v Turn off variances training.
-V Turn on variances training.
-w Turn off weigths training.
-W Turn on weigths training.
-n name New name for the GMM
-N gNum Number of Gaussians
-D gDim Dimension of Gaussians
URL Locator of an existing GMM
args - Command line arguments.
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||