Package aima.core.probability.hmm

Examples of aima.core.probability.hmm.TransitionModel


  }

  @Test
  public void testTransitionModelGeneratesNewStateWhenGivenOldStateAndProbability() {

    TransitionModel tm = rainman.transitionModel();
    String oldState = HmmConstants.RAINING;
    String state1 = tm.getStateForProbability(oldState,
        randomizer.nextDouble());
    String state2 = tm.getStateForProbability(oldState,
        randomizer.nextDouble());
    Assert.assertEquals(state1, HmmConstants.RAINING);
    Assert.assertEquals(state2, HmmConstants.NOT_RAINING);
  }
View Full Code Here

TOP

Related Classes of aima.core.probability.hmm.TransitionModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.