internal SearchStateArc[] getSuccessors(int num, int num2) { SearchStateArc[] array; if (num2 == this.pronunciation.getUnits().Length - 1) { if (this.isContextIndependentUnit(this.pronunciation.getUnits()[num2])) { array = new SearchStateArc[] { new AFlatLinguist.FullHMMSearchState(this.this_0, this, num2, num, 0) }; } else { int[] nextUnits = this.gs.getNextUnits(); array = new SearchStateArc[nextUnits.Length]; for (int i = 0; i < array.Length; i++) { array[i] = new AFlatLinguist.FullHMMSearchState(this.this_0, this, num2, num, nextUnits[i]); } } } else { array = new SearchStateArc[] { new AFlatLinguist.FullHMMSearchState(this.this_0, this, num2, num) }; } return(array); }
public override bool equals(object obj) { if (obj == this) { return(true); } if (obj is AFlatLinguist.FullHMMSearchState) { AFlatLinguist.FullHMMSearchState fullHMMSearchState = (AFlatLinguist.FullHMMSearchState)obj; return(this.pState.getGrammarState().getGrammarNode() == fullHMMSearchState.pState.getGrammarState().getGrammarNode() && this.pState.getPronunciation() == fullHMMSearchState.pState.getPronunciation() && this.index == fullHMMSearchState.index && this.lc == fullHMMSearchState.lc && this.rc == fullHMMSearchState.rc); } return(false); }
internal HMMStateSearchState(AFlatLinguist aflatLinguist, AFlatLinguist.FullHMMSearchState fullHMMSearchState, HMMState hmmstate, float num) : base(aflatLinguist) { this.probability = num; this.fullHMMSearchState = fullHMMSearchState; this.hmmState = hmmstate; }
internal HMMStateSearchState(AFlatLinguist aflatLinguist, AFlatLinguist.FullHMMSearchState fullHMMSearchState, HMMState hmmstate) : this(aflatLinguist, fullHMMSearchState, hmmstate, 0f) { }