Package aima.core.util

Examples of aima.core.util.JavaRandomizer


   *            model <b>P</b>(<b>X</b><sub>1</sub> | <b>X</b><sub>0</sub>),
   *            sensor model <b>P</b>(<b>E</b><sub>1</sub> |
   *            <b>X</b><sub>1</sub>)
   */
  public ParticleFiltering(int N, DynamicBayesianNetwork dbn) {
    this(N, dbn, new JavaRandomizer());
  }
View Full Code Here


*/
public class GibbsAsk implements BayesSampleInference {
  private Randomizer randomizer = null;

  public GibbsAsk() {
    this(new JavaRandomizer(new Random()));
  }
View Full Code Here

  }

  public static void particleFilterinfDemo() {
    System.out.println("\nParticle Filtering Demo\n");
    HiddenMarkovModel rainman = HMMFactory.createRainmanHMM();
    Randomizer r = new JavaRandomizer();
    ParticleSet starting = rainman.prior().toParticleSet(rainman, r, 1000);
    System.out.println("at the beginning, "
        + starting.numberOfParticlesWithState(HmmConstants.RAINING)
        + " particles 0f 1000 indicate status == 'raining' ");
    System.out.println("at the beginning, "
View Full Code Here

    policy.setAction(new CellWorldPosition(3, 3), CellWorld.RIGHT);

    PassiveADPAgent<CellWorldPosition, String> agent = new PassiveADPAgent<CellWorldPosition, String>(
        fourByThree, policy);

    Randomizer r = new JavaRandomizer();
    System.out
        .println("Deriving Utility Function using the Passive ADP Agent  From 100 trials in the 4 by 3 world");
    MDPUtilityFunction<CellWorldPosition> uf = null;
    for (int i = 0; i < 100; i++) {
      agent.executeTrial(r);
View Full Code Here

    policy.setAction(new CellWorldPosition(3, 1), CellWorld.RIGHT);
    policy.setAction(new CellWorldPosition(3, 2), CellWorld.RIGHT);
    policy.setAction(new CellWorldPosition(3, 3), CellWorld.RIGHT);
    PassiveTDAgent<CellWorldPosition, String> agent = new PassiveTDAgent<CellWorldPosition, String>(
        fourByThree, policy);
    Randomizer r = new JavaRandomizer();
    System.out
        .println("Deriving Utility Function in the Passive ADP Agent  From 200 trials in the 4 by 3 world");
    MDPUtilityFunction<CellWorldPosition> uf = null;
    for (int i = 0; i < 200; i++) {
      agent.executeTrial(r);
View Full Code Here

    MDP<CellWorldPosition, String> fourByThree = MDPFactory
        .createFourByThreeMDP();
    ;
    QLearningAgent<CellWorldPosition, String> qla = new QLearningAgent<CellWorldPosition, String>(
        fourByThree);
    Randomizer r = new JavaRandomizer();

    // Randomizer r = new JavaRandomizer();
    // Hashtable<Pair<CellWorldPosition, String>, Double> q = null;
    QTable<CellWorldPosition, String> qTable = null;
    System.out.println("After 100 trials in the 4 by 3 world");
View Full Code Here

*/
public class LikelihoodWeighting implements BayesSampleInference {
  private Randomizer randomizer = null;

  public LikelihoodWeighting() {
    this(new JavaRandomizer(new Random()));
  }
View Full Code Here

public class PriorSample {

  private Randomizer randomizer = null;

  public PriorSample() {
    this(new JavaRandomizer(new Random()));
  }
View Full Code Here

TOP

Related Classes of aima.core.util.JavaRandomizer

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.