|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.linguist.acoustic.tiedstate.CompositeSenone
Represents a composite senone. A composite senone consists of a set
of all possible senones
for a given state.
CompositeSenones are
used when the exact context of a senone is not known. The
CompositeSenone represents all the possible senones.
This class currently only needs to be public for testing purposes.
Note that all scores are maintained in LogMath log base
Constructor Summary | |
CompositeSenone(Senone[] senones,
float weight)
Constructs a CompositeSenone given the set of constiuent senones |
Method Summary | |
float[] |
calculateComponentScore(Data feature)
Calculate scores for each component in the senone's distribution. |
static CompositeSenone |
create(java.util.Collection senoneCollection,
float weight)
a factory method that creates a CompositeSenone from a list of senones. |
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 |
float |
getScore(Data feature)
Calculates the composite senone score. |
Senone[] |
getSenones()
Returns the set of senones that compose this composite senone. |
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 CompositeSenone(Senone[] senones, float weight)
senones
- the set of constiuent senonesMethod Detail |
public static CompositeSenone create(java.util.Collection senoneCollection, float weight)
senoneCollection
- the Collection of senones
public void dump(java.lang.String msg)
dump
in interface Senone
msg
- annotatin for the dumppublic float getScore(Data feature)
getScore
in interface Senone
feature
- the feature to score
public float[] calculateComponentScore(Data feature)
calculateComponentScore
in interface Senone
feature
- the current feature
public Senone[] getSenones()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |