|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.tiedstate.GaussianMixture
public class GaussianMixture
Represents a concrete implementation of a simple senone
. A simple senone is a set of probability
density functions implemented as a gaussian mixture.
Constructor Summary | |
---|---|
GaussianMixture(LogMath logMath,
float[] logMixtureWeights,
MixtureComponent[] mixtureComponents,
long id)
Creates a new senone from the given components. |
Method Summary | |
---|---|
float[] |
calculateComponentScore(Data feature)
Calculates the scores for each component in the senone. |
float |
calculateScore(Data feature)
Calculates the score for the senone. |
java.lang.Object |
clone()
|
int |
dimension()
|
void |
dump(java.lang.String msg)
Dumps this senone. |
boolean |
equals(java.lang.Object o)
Determines if two objects are equal |
float[] |
getComponentWeights()
|
long |
getID()
Gets the ID for this senone |
float |
getLogComponentWeight(int index)
|
LogMath |
getLogMath()
|
MixtureComponent[] |
getMixtureComponents()
Returns the mixture components associated with this Gaussian |
float |
getScore(Data feature)
Returns a score for the given feature based upon this senone, and calculates it if not already calculated. |
int |
hashCode()
Returns the hashcode for this object |
int |
numComponents()
|
java.lang.String |
toString()
Retrieves a string form of this object |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GaussianMixture(LogMath logMath, float[] logMixtureWeights, MixtureComponent[] mixtureComponents, long id)
logMath
- the log mathlogMixtureWeights
- the mixture weights for this senone in LogMath log basemixtureComponents
- the mixture components for this senoneMethod Detail |
---|
public void dump(java.lang.String msg)
dump
in interface Senone
msg
- annotation messagepublic float getScore(Data feature)
getScore
in interface Senone
feature
- the feature to score
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare to this.
public int hashCode()
hashCode
in class java.lang.Object
public long getID()
getID
in interface Senone
public java.lang.String toString()
toString
in class java.lang.Object
public float calculateScore(Data feature)
feature
- the feature to score
public float[] calculateComponentScore(Data feature)
calculateComponentScore
in interface Senone
feature
- the feature to score
public MixtureComponent[] getMixtureComponents()
public int dimension()
public int numComponents()
GaussianMixture
.public float[] getComponentWeights()
public LogMath getLogMath()
public float getLogComponentWeight(int index)
index
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |