Package aima.core.environment.cellworld

Examples of aima.core.environment.cellworld.CellWorld


  private Randomizer alwaysLessThanEightyPercent,
      betweenEightyAndNinetyPercent, greaterThanNinetyPercent;

  @Before
  public void setUp() {
    cw = new CellWorld(3, 4, -0.04);

    cw.markBlocked(2, 2);

    cw.setTerminalState(2, 4);
    cw.setReward(2, 4, -1);


*/
public class MDPFactory {

  public static MDP<CellWorldPosition, String> createFourByThreeMDP() {

    CellWorld cw = new CellWorld(3, 4, 0.4);
    cw = new CellWorld(3, 4, -0.04);

    cw.markBlocked(2, 2);

    cw.setTerminalState(2, 4);
    cw.setReward(2, 4, -1);

    cw.setTerminalState(3, 4);
    cw.setReward(3, 4, 1);
    return cw.asMdp();
  }

TOP

Related Classes of aima.core.environment.cellworld.CellWorld

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.