Package plm.hmm.gaussian

Examples of plm.hmm.gaussian.GaussianArTransitionState


    // rediculous hack to get around java bug
    for (T particle : distribution.getDomain()) {
      final double particleWeight = distribution.getFraction(particle);
      Object tmpParticle = particle;
      if (tmpParticle instanceof GaussianArTransitionState) {
        GaussianArTransitionState gParticle = (GaussianArTransitionState) tmpParticle;
        stateMean.accumulate(VectorFactory.getDefault().copyValues(
            gParticle.getSuffStat().getMean() * particleWeight));
      } else if (tmpParticle instanceof GaussianArHpTransitionState) {
        GaussianArHpTransitionState gParticle = (GaussianArHpTransitionState) tmpParticle;
        stateMean.accumulate(gParticle.getState().getMean().scale(particleWeight));
      }
    }

    final double rmse = stateMean.getSum().minus(trueState).norm2();
    runningRate.accumulate(new MutableDouble(rmse));
View Full Code Here

TOP

Related Classes of plm.hmm.gaussian.GaussianArTransitionState

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.