Package plm.hmm.gaussian

Examples of plm.hmm.gaussian.GaussianArHpTransitionState


    for (T particle : distribution.getDomain()) {
      final double particleWeight = distribution.getFraction(particle);
      // stupid hack for a java bug
      final Object pobj = particle;
      Preconditions.checkState(pobj instanceof GaussianArHpTransitionState);
      GaussianArHpTransitionState gParticle = (GaussianArHpTransitionState) pobj;
      List<MultivariateGaussian> psis = gParticle.getPsiSS();

      // FIXME TODO how to order/identify psis?  sort by magnitude of offset?
      int i = 0;
      for (MultivariateGaussian psi : psis) {
        stateMeans.get(i).accumulate(psi.getMean().scale(particleWeight));
View Full Code Here


      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.GaussianArHpTransitionState

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.