// System.out.println(flsDayoneResult);
}
@Test
public void testOneStepFixedLagSmoothingOnRainManHmm() {
FixedLagSmoothing fls = new FixedLagSmoothing(rainmanHmm, 1);
VarDistribution smoothedDayZero = fls.smooth(HmmConstants.SEE_UMBRELLA); // see
// umbrella on day one
Assert.assertEquals(0.627,
smoothedDayZero.getProbabilityOf(HmmConstants.RAINING),
TOLERANCE);
VarDistribution smoothedDayOne = fls.smooth(HmmConstants.SEE_UMBRELLA); // see
// umbrella on day two
Assert.assertEquals(0.883,
smoothedDayOne.getProbabilityOf(HmmConstants.RAINING),
TOLERANCE);
Assert.assertEquals(0.117,
smoothedDayOne.getProbabilityOf(HmmConstants.NOT_RAINING),
TOLERANCE);
VarDistribution smoothedDayTwo = fls
.smooth(HmmConstants.SEE_NO_UMBRELLA); // see no umbrella on
// day three
Assert.assertEquals(0.799,
smoothedDayTwo.getProbabilityOf(HmmConstants.RAINING),
TOLERANCE);