com.cra.bnet.engine
Interface LightweightBayesianNetwork


public interface LightweightBayesianNetwork

A lightweight Bayesian network data structure. The only modifications that can be made are setting conditional probabilities and setting/removing evidence.


Method Summary
 void clearAllEvidence()
           
 void clearEvidence(int variable)
           
 double[] getBeliefs(int variable)
           
 double getConditionalProbability(int variable, int configuration)
           
 double[] getEvidence(int variable)
           
 int getStateCount(int variable)
           
 String[] getStates(int variable)
           
 int getVariable(String name)
           
 int getVariableCount()
           
 String getVariableName(int variable)
           
 void setConditionalProbability(int variable, int configuration, double probability)
           
 void setEvidence(int variable, double[] evidence)
           
 

Method Detail

getBeliefs

public double[] getBeliefs(int variable)

getEvidence

public double[] getEvidence(int variable)

setEvidence

public void setEvidence(int variable,
                        double[] evidence)

clearEvidence

public void clearEvidence(int variable)

clearAllEvidence

public void clearAllEvidence()

getConditionalProbability

public double getConditionalProbability(int variable,
                                        int configuration)

setConditionalProbability

public void setConditionalProbability(int variable,
                                      int configuration,
                                      double probability)

getVariable

public int getVariable(String name)

getVariableName

public String getVariableName(int variable)

getStates

public String[] getStates(int variable)

getVariableCount

public int getVariableCount()

getStateCount

public int getStateCount(int variable)