Package gov.sandia.cognition.math.matrix

Examples of gov.sandia.cognition.math.matrix.Matrix.inverse()


      final Matrix newComponentPriorPredPrecision =
          centeringDist.getInverseWishart().getInverseScale()
              .scale(2d * (kappa + 1d) / (kappa * newComponentPriorPredDof));
      final MultivariateStudentTDistribution newComponentPriorPred =
          new MultivariateStudentTDistribution(newComponentPriorPredDof, centeringDist
              .getGaussian().getMean(), newComponentPriorPredPrecision.inverse());

      final double newComponentLogLikelihood =
          Math.log(particle.getAlpha()) - Math.log(particle.getAlpha() + particle.getIndex())
              + newComponentPriorPred.getProbabilityFunction().logEvaluate(observation);
      componentPriorPredLogLikelihoods[0] = newComponentLogLikelihood;
View Full Code Here


                    2d * (kappa + componentN + 1d) / ((kappa + componentN) * componentPriorPredDof));

        // FIXME TODO avoid this inverse!
        final MultivariateStudentTDistribution componentPriorPred =
            new MultivariateStudentTDistribution(componentPriorPredDof, componentPriorPredMean,
                componentPriorPredCovariance.inverse());

        final double componentLogLikelihood =
            Math.log(componentN) - Math.log(particle.getAlpha() + particle.getIndex())
                + componentPriorPred.getProbabilityFunction().logEvaluate(observation);

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.