|
||||||||||
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
Represents a concrete implementation of a simple senone
.
A simple senone is a set of probability density functions implemented
as a gaussian mixture.
All scores and weights are maintained in LogMath log base.
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. |
void |
dump(java.lang.String msg)
Dumps this senone. |
boolean |
equals(java.lang.Object o)
Determines if two objects are equal |
long |
getID()
Gets the ID for this senone |
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 |
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)
o
- the object to compare to this.
public int hashCode()
public long getID()
getID
in interface Senone
public java.lang.String toString()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |