Package gov.sandia.cognition.math

Examples of gov.sandia.cognition.math.MutableDouble


         */
        Preconditions.checkState(stateSums.getDomainSize() <= hmm.getNumStates());
        for (int j = 0; j < hmm.getNumStates(); j++) {
          final double classError = forwardResults.get(i).getElement(j) - stateSums.getFraction(j);
          Preconditions.checkState(!Double.isNaN(classError));
          classErrorRates.get(j).accumulate(new MutableDouble(classError));
        }
      }
    }
   
    List<Double> errMeans = Lists.newArrayList();
View Full Code Here


          new UnivariateGaussian.SufficientStatistic();
      final RingAccumulator<MutableDouble> countSummary = new RingAccumulator<MutableDouble>();

      for (final MvGaussianDPDistribution mixtureDist : currentMixtureDistribution.getDomain()) {
        rmseSuffStat.update(observation.minus(mixtureDist.getMean()).norm2());
        countSummary.accumulate(new MutableDouble(mixtureDist.getDistributionCount()));
      }
      System.out.println("posterior RMSE mean:" + rmseSuffStat.getMean());
      System.out.println("posterior component counts:" + countSummary.getMean());
    }
View Full Code Here

TOP

Related Classes of gov.sandia.cognition.math.MutableDouble

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.