internal StateRecord(TransitionRecord transition, EmissionRecord emission, StateRecord previousState) { transition.CheckWhetherArgumentIsNull("transition"); emission.CheckWhetherArgumentIsNull("emission"); this.transition = transition; this.emission = emission; this.previousState = previousState; this.nextStates = new HashSet <StateRecord> (); this.logProbability = this.transition.LogProbability + this.emission.LogProbability; }
internal StateRecord(TransitionRecord transition, EmissionRecord emission, StateRecord previousState) { transition.CheckWhetherArgumentIsNull ("transition"); emission.CheckWhetherArgumentIsNull ("emission"); this.transition = transition; this.emission = emission; this.previousState = previousState; this.nextStates = new HashSet<StateRecord> (); this.logProbability = this.transition.LogProbability + this.emission.LogProbability; }
public void AddNextState(StateRecord nextState) { nextState.CheckWhetherArgumentIsNull("nextState"); this.nextStates.Add(nextState); }
public void AddNextState(StateRecord nextState) { nextState.CheckWhetherArgumentIsNull ("nextState"); this.nextStates.Add (nextState); }