org.drools.beliefs.bayes
Class BayesAbsorption
java.lang.Object
org.drools.beliefs.bayes.BayesAbsorption
public class BayesAbsorption
- extends Object
|
Constructor Summary |
BayesAbsorption(int[] srcVarPos,
double[] oldSrcPotentials,
double[] srcPotentials,
int[] srcVarPosMultipliers,
BayesVariable[] trgVars,
double[] trgPotentials)
|
|
Method Summary |
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 |
BayesAbsorption
public BayesAbsorption(int[] srcVarPos,
double[] oldSrcPotentials,
double[] srcPotentials,
int[] srcVarPosMultipliers,
BayesVariable[] trgVars,
double[] trgPotentials)
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)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.