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, "
+ starting.numberOfParticlesWithState(HmmConstants.NOT_RAINING)