Class BayesAbsorption


  • public class BayesAbsorption
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BayesAbsorption​(int[] srcVarPos, double[] oldSrcPotentials, double[] srcPotentials, int[] srcVarPosMultipliers, BayesVariable[] trgVars, double[] trgPotentials)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void absorb()  
      static double[] dividePotentials​(double[] potentials, double[] oldPotentials)  
      static void normalize​(double[] array)  
      void recurse​(int currentVar, int targetVarPos)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BayesAbsorption

        public BayesAbsorption​(int[] srcVarPos,
                               double[] oldSrcPotentials,
                               double[] srcPotentials,
                               int[] srcVarPosMultipliers,
                               BayesVariable[] trgVars,
                               double[] trgPotentials)
    • Method Detail

      • absorb

        public void absorb()
      • normalize

        public static void normalize​(double[] array)
      • dividePotentials

        public static double[] dividePotentials​(double[] potentials,
                                                double[] oldPotentials)
      • recurse

        public void recurse​(int currentVar,
                            int targetVarPos)