A B C D E G N P R S T V

A

addNode(Variable) - Method in class techniques.BN.BayesNet
 

B

BayesNet - class techniques.BN.BayesNet.
Maintains a bayes net
BayesNet() - Constructor for class techniques.BN.BayesNet
 

C

clone() - Method in class techniques.BN.Variable
 
clone() - Method in class techniques.BN.BayesNet
Performs a shallow copy (variables are not cloned)
coinFlip() - Static method in class techniques.utils.Random
Returns true with probability 0.5.

D

deepCopy() - Method in class techniques.BN.BayesNet
Performs a deep copy (variables are cloned)

E

EnumerationSolver - class techniques.BN.solver.EnumerationSolver.
An implementation of the most basic solver for the BayesNets.
EnumerationSolver(BayesNet) - Constructor for class techniques.BN.solver.EnumerationSolver
 

G

getAlarm() - Static method in class techniques.BN.Nets
Returns BayesNet as given by http://www.cs.huji.ac.il/labs/compbio/Repository/Datasets/alarm/alarm.htm
getBurglary() - Static method in class techniques.BN.Nets
Returns BayesNet as given in figure 14.2, pg494 of AIMA (2nd Edition)
getCarpo() - Static method in class techniques.BN.Nets
Returns BayesNet as given by http://www.cs.huji.ac.il/labs/compbio/Repository/Datasets/carpo/carpo.htm
getCarpoForGibbs() - Static method in class techniques.BN.Nets
Returns BayesNet where nodes probability tables do not have 0 in net.
getCompleteString() - Method in class techniques.BN.ProbTable
Returns string of variables and data in table
getEvidence() - Method in class techniques.BN.solver.Solver
 
getGivenValue(int) - Method in class techniques.BN.Variable
Maps number to given value
getGivenValues() - Method in class techniques.BN.Variable
Returns all given values (in an array with indices representing the mapping from number to given value)
getInsurance() - Static method in class techniques.BN.Nets
Returns BayesNet as given by http://www.cs.huji.ac.il/labs/compbio/Repository/Datasets/insurance/insurance.htm
getInsuranceForGibbs() - Static method in class techniques.BN.Nets
Returns BayesNet where nodes probability tables do not have 0 in net.
getName() - Method in class techniques.BN.Variable
Returns variable name
getNode(String) - Method in class techniques.BN.BayesNet
Returns node with given name
getNodes() - Method in class techniques.BN.BayesNet
Returns nodes in the net sorted.
getNodesWithTopologicalOrdering() - Method in class techniques.BN.BayesNet
Returns nodes in the net sorted in topological order from parents to children, i.e.
getNumOfNodes() - Method in class techniques.BN.BayesNet
 
getNumValues() - Method in class techniques.BN.Variable
Returns number of values used by variable
getNumVariables() - Method in class techniques.BN.ProbTable
 
getParents() - Method in class techniques.BN.Variable
 
getProb(HashMap) - Method in class techniques.BN.Variable
Used to get the probability values for the given variable evidence.
getProb(int[]) - Method in class techniques.BN.ProbTable
Same as getProb(Map) with evidence instead provided as an int array.
getProb(int, HashMap) - Method in class techniques.BN.Variable
Used to get the probability values for the given variable vaue index/number and evidence
getProb(Map) - Method in class techniques.BN.ProbTable
Used to get the probability values for the given variable evidence.
getProb(Variable) - Method in class techniques.BN.solver.Solver
 
getProb(Variable) - Method in class techniques.BN.solver.EnumerationSolver
 
getProbTable() - Method in class techniques.BN.Variable
Returns cond.
getTableAsString() - Method in class techniques.BN.ProbTable
 
getTableSize() - Method in class techniques.BN.ProbTable
Returns size of the underlying table.
getTableSize(Variable[]) - Static method in class techniques.BN.ProbTable
Returns size of the table that would be formed from the given variables
getValNdx(Object) - Method in class techniques.BN.Variable
Maps given value to number
getValues() - Method in class techniques.BN.Variable
Just returns all numbers from 0 to getNumValues()
getVariable(int) - Method in class techniques.BN.ProbTable
 
getVariables() - Method in class techniques.BN.ProbTable
 
getVariablesIterator() - Method in class techniques.BN.ProbTable
Returns an iterator through a set of all entries (variable-value combinations for the variables) in the table.
getVarString() - Method in class techniques.BN.ProbTable
Returns string of variables in table

N

Nets - class techniques.BN.Nets.
Creates a number of different BayesNets
Nets() - Constructor for class techniques.BN.Nets
 

P

printNetwork() - Method in class techniques.BN.BayesNet
 
ProbTable - class techniques.BN.ProbTable.
Represents a probability table, and can be thought of as a maintainer of functions of discrete types.
ProbTable(Variable) - Constructor for class techniques.BN.ProbTable
 
ProbTable(Variable[]) - Constructor for class techniques.BN.ProbTable
 

R

Random - class techniques.utils.Random.
 
Random() - Constructor for class techniques.utils.Random
 
random(int) - Static method in class techniques.utils.Random
Returns uniformly a number between 0 and max-1 (inclusive)
removeZeros(BayesNet) - Static method in class techniques.BN.Nets
 

S

sampleCompleteProbDist(double[]) - Static method in class techniques.utils.Random
Samples from input based on given complete probability distribution (prob.
samplePartialProbDist(double[]) - Static method in class techniques.utils.Random
Samples from input based on given probability distribution.
setEvidence(HashMap) - Method in class techniques.BN.solver.Solver
 
setEvidenceGivenVal(HashMap) - Method in class techniques.BN.solver.Solver
 
setParent(Variable) - Method in class techniques.BN.Variable
set parents for the conditional prob.
setParents(Variable[]) - Method in class techniques.BN.Variable
set parents for the conditional prob.
setProb(int[], double) - Method in class techniques.BN.ProbTable
 
setProb(int, double[]) - Method in class techniques.BN.Variable
Used to set the condition probability table values for the given variable vaue index/number
setProb(Map, double) - Method in class techniques.BN.ProbTable
All values for variables in the table are needed to be in the map for successful completion of the method
setTableValue(HashMap, double) - Method in class techniques.BN.ProbTable
Sets the probability table value given all the values for the parents of the current prob.
setTableValue(int[], double) - Method in class techniques.BN.ProbTable
Sets the probability table value given all the values for the parents of the current prob.
setTableValues(HashMap, double[]) - Method in class techniques.BN.ProbTable
Sets the probability tables values given the first few variable values for the current prob.
setTrueProb(double[]) - Method in class techniques.BN.Variable
Used to set the condition probability table values by only providing values for variable given value being Boolean.TRUE (the method calculate values for Boolean.FALSE).
Solver - class techniques.BN.solver.Solver.
Provides some helpful functionality, like maintaining the evidence variables that are needed for implementing BayesNet solvers.
Solver(BayesNet) - Constructor for class techniques.BN.solver.Solver
 

T

table - Variable in class techniques.BN.ProbTable
 
techniques.BN - package techniques.BN
 
techniques.BN.solver - package techniques.BN.solver
 
techniques.utils - package techniques.utils
 
toString() - Method in class techniques.BN.Variable
 
toString() - Method in class techniques.BN.ProbTable
 

V

Variable - class techniques.BN.Variable.
Represents a variable in a bayes net, and beyond the variable name stores the possible values and the conditional probability table for the variable.
Variable(String) - Constructor for class techniques.BN.Variable
 
Variable(String, Object[]) - Constructor for class techniques.BN.Variable
 

A B C D E G N P R S T V