Examples of smooth()


Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

    // RandomVariable fbDayOneResult = fbResults.get(1);
    // System.out.println(fbDayOneResult);

    FixedLagSmoothing fls = new FixedLagSmoothing(rainmanHmm, 2);

    Assert.assertNull(fls.smooth(dayOnePerception));
    // System.out.println(fls.smooth(dayTwoPerception));
    // RandomVariable flsDayoneResult = fls.smooth(dayThreePerception);
    // System.out.println(flsDayoneResult);
  }
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

  @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);
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

    // 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,
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

        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);
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

  @Test
  public void testOneStepFixedLagSmoothingOnRainManHmmWithDifferingEvidence() {
    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);
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

    // umbrella on day one
    Assert.assertEquals(0.627,
        smoothedDayZero.getProbabilityOf(HmmConstants.RAINING),
        TOLERANCE);

    VarDistribution smoothedDayOne = fls
        .smooth(HmmConstants.SEE_NO_UMBRELLA);// no umbrella on day
    // two
    Assert.assertEquals(0.702,
        smoothedDayOne.getProbabilityOf(HmmConstants.RAINING),
        TOLERANCE);
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

  @Test
  public void testTwoStepFixedLagSmoothingOnRainManHmm() {
    FixedLagSmoothing fls = new FixedLagSmoothing(rainmanHmm, 2);

    VarDistribution smoothedOne = fls.smooth(HmmConstants.SEE_UMBRELLA); // see
    // umbrella on day one
    Assert.assertNull(smoothedOne);

    smoothedOne = fls.smooth(HmmConstants.SEE_UMBRELLA); // see
    // umbrella on day two
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

    VarDistribution smoothedOne = fls.smooth(HmmConstants.SEE_UMBRELLA); // see
    // umbrella on day one
    Assert.assertNull(smoothedOne);

    smoothedOne = fls.smooth(HmmConstants.SEE_UMBRELLA); // see
    // umbrella on day two
    Assert.assertEquals(0.653,
        smoothedOne.getProbabilityOf(HmmConstants.RAINING), TOLERANCE);
    Assert.assertEquals(0.346,
        smoothedOne.getProbabilityOf(HmmConstants.NOT_RAINING),
View Full Code Here

Examples of aima.core.probability.hmm.FixedLagSmoothing.smooth()

        smoothedOne.getProbabilityOf(HmmConstants.RAINING), TOLERANCE);
    Assert.assertEquals(0.346,
        smoothedOne.getProbabilityOf(HmmConstants.NOT_RAINING),
        TOLERANCE);

    VarDistribution smoothedTwo = fls.smooth(HmmConstants.SEE_UMBRELLA);// see
    // umbrella on day 3
    Assert.assertEquals(0.894,
        smoothedTwo.getProbabilityOf(HmmConstants.RAINING), TOLERANCE);
    Assert.assertEquals(0.105,
        smoothedTwo.getProbabilityOf(HmmConstants.NOT_RAINING),
View Full Code Here

Examples of org.jaitools.jts.LineSmoother.smooth()

        // apply smoothing
        LineSmoother smoother = new LineSmoother(gf);
        Polygonizer polygonizer = new Polygonizer();
       
        for (int i = 0; i < smooth.size(); i++) {
            polygonizer.add(smoother.smooth(smooth.get(i), 0.5));
        }
        polygonizer.add(keep);
       
        Collection<Polygon> polys = (Collection<Polygon>) polygonizer.getPolygons();
        poly = gf.createMultiPolygon(polys.toArray(new Polygon[polys.size()]));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.