edu.ksu.cis.bnj.bbn.learning
Class SimpleStructureScore

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.learning.LearnerScore
      extended byedu.ksu.cis.bnj.bbn.learning.StructureScore
          extended byedu.ksu.cis.bnj.bbn.learning.SimpleStructureScore
Direct Known Subclasses:
BDEStructureScore

public class SimpleStructureScore
extends StructureScore

Author:
Roby Joehanes

Field Summary
 
Fields inherited from class edu.ksu.cis.bnj.bbn.learning.StructureScore
baseScore
 
Fields inherited from class edu.ksu.cis.bnj.bbn.learning.LearnerScore
NO_CANDIDATES, owner, tally
 
Constructor Summary
SimpleStructureScore(Learner l, LearnerScore base)
           
 
Method Summary
 double getScore(int curNode, int candidate, java.util.Set[] parentTable)
          Basic structure score
 double getScore(java.util.Set[] parentTable)
           
 void initialize()
           
 
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.StructureScore
setBaseScore
 
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.LearnerScore
getTallyer, setData, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStructureScore

public SimpleStructureScore(Learner l,
                            LearnerScore base)
Parameters:
l -
base -
Method Detail

getScore

public double getScore(int curNode,
                       int candidate,
                       java.util.Set[] parentTable)
Basic structure score

Specified by:
getScore in class LearnerScore
Parameters:
curNode - The index of the currently evaluated node
candidate - The index of the parent candidate
parentTable - The array of Sets of integers. Each integer in the set is the index of currently assembled parent of each node.
Returns:
double the score
See Also:
edu.ksu.cis.bnj.bbn.learning.LearnerScore#getScore(java.lang.String, java.util.Set, edu.ksu.cis.kdd.util.TableSet)

getScore

public double getScore(java.util.Set[] parentTable)

initialize

public void initialize()
Overrides:
initialize in class LearnerScore