public static StateObservationPair <S, T> New(S state, T observation) { var result = new StateObservationPair <S, T>(); result.State = state; result.Observation = observation; return(result); }
public double GetTransitionProbability(StateObservationPair <S, T> from, StateObservationPair <S, T> to) { return(TransitionMatrix[from.State][to.State]); }
public double GetEmissionProbability(StateObservationPair <S, T> pair) { return(EmissionMatrix[pair.State][pair.Observation]); }