Example #1
0
        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;
        }
Example #3
0
 public void AddNextState(StateRecord nextState)
 {
     nextState.CheckWhetherArgumentIsNull("nextState");
     this.nextStates.Add(nextState);
 }
 public void AddNextState(StateRecord nextState)
 {
     nextState.CheckWhetherArgumentIsNull ("nextState");
     this.nextStates.Add (nextState);
 }