Example #1
0
        public static StateObservationPair <S, T> New(S state, T observation)
        {
            var result = new StateObservationPair <S, T>();

            result.State       = state;
            result.Observation = observation;
            return(result);
        }
Example #2
0
 public double GetTransitionProbability(StateObservationPair <S, T> from, StateObservationPair <S, T> to)
 {
     return(TransitionMatrix[from.State][to.State]);
 }
Example #3
0
 public double GetEmissionProbability(StateObservationPair <S, T> pair)
 {
     return(EmissionMatrix[pair.State][pair.Observation]);
 }