Exemplo n.º 1
0
 /**
  * Construct a Particle Filtering instance.
  *
  * @param N
  *            the number of samples to be maintained
  * @param dbn
  *            a DBN with prior <b>P</b>(<b>X</b><sub>0</sub>), transition
  *            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>)
  * @param randomizer
  *            a IRandom to be used for sampling purposes.
  */
 public ParticleFiltering(int N, IDynamicBayesianNetwork dbn, IRandom randomizer)
 {
     this.randomizer   = randomizer;
     this.priorSampler = new PriorSample(this.randomizer);
     initPersistent(N, dbn);
 }
Exemplo n.º 2
0
 public RejectionSampling(PriorSample ps)
 {
     this.ps = ps;
 }