edu.duke.cs.banjo.learner.components
Class EquivalenceCheckerBasic

java.lang.Object
  extended byedu.duke.cs.banjo.learner.components.EquivalenceChecker
      extended byedu.duke.cs.banjo.learner.components.EquivalenceCheckerBasic
All Implemented Interfaces:
EquivalenceCheckerI

public class EquivalenceCheckerBasic
extends EquivalenceChecker

Provides basic equivalence checking between networks.

Details:

Change History:
Created on Jan 9, 2006

Author:
Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.

Field Summary
protected  int dimLags
           
protected  int dimParents
           
protected  int dimVariables
           
protected  long matchAfterCompleteCheck
           
protected  long matchDueToIdentity
           
protected  long mismatchInParentCount
           
protected  long mismatchInSkeleton
           
protected  long mismatchInVStructures
           
protected  int offsetLags
           
protected  int offsetParents
           
protected  int offsetVariables
           
 
Fields inherited from class edu.duke.cs.banjo.learner.components.EquivalenceChecker
equivalenceCheckCount, maxMarkovLag, minMarkovLag, processData, varCount
 
Constructor Summary
EquivalenceCheckerBasic(Settings _processData)
           
 
Method Summary
protected  boolean isEquivalent(BayesNetStructureI _referenceBayesNetStructure, BayesNetStructureI _bayesNetStructureToCheck)
           
protected  boolean isEquivalent(EdgesAsArrayWithCachedStatistics _referenceStructure, EdgesAsArrayWithCachedStatistics _structureToCheck)
           
protected  boolean isEquivalent(EdgesAsMatrixWithCachedStatistics _referenceStructure, EdgesAsMatrixWithCachedStatistics _structureToCheck)
           
protected  boolean isEquivalent(EdgesWithCachedStatisticsI _referenceStructure, EdgesWithCachedStatisticsI _structureToCheck)
           
 boolean isEquivalent(java.util.Set _setOfBayesNetStructures, BayesNetStructureI _bayesNetStructureToCheck)
           
 java.lang.StringBuffer provideCollectedStatistics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mismatchInParentCount

protected long mismatchInParentCount

mismatchInSkeleton

protected long mismatchInSkeleton

mismatchInVStructures

protected long mismatchInVStructures

matchDueToIdentity

protected long matchDueToIdentity

matchAfterCompleteCheck

protected long matchAfterCompleteCheck

dimVariables

protected final int dimVariables

dimParents

protected final int dimParents

dimLags

protected final int dimLags

offsetVariables

protected final int offsetVariables

offsetParents

protected final int offsetParents

offsetLags

protected final int offsetLags
Constructor Detail

EquivalenceCheckerBasic

public EquivalenceCheckerBasic(Settings _processData)
                        throws java.lang.Exception
Method Detail

isEquivalent

public boolean isEquivalent(java.util.Set _setOfBayesNetStructures,
                            BayesNetStructureI _bayesNetStructureToCheck)
                     throws java.lang.Exception
Specified by:
isEquivalent in interface EquivalenceCheckerI
Specified by:
isEquivalent in class EquivalenceChecker
Throws:
java.lang.Exception

isEquivalent

protected boolean isEquivalent(BayesNetStructureI _referenceBayesNetStructure,
                               BayesNetStructureI _bayesNetStructureToCheck)
                        throws java.lang.Exception
Throws:
java.lang.Exception

isEquivalent

protected boolean isEquivalent(EdgesAsMatrixWithCachedStatistics _referenceStructure,
                               EdgesAsMatrixWithCachedStatistics _structureToCheck)
                        throws java.lang.Exception
Throws:
java.lang.Exception

isEquivalent

protected boolean isEquivalent(EdgesAsArrayWithCachedStatistics _referenceStructure,
                               EdgesAsArrayWithCachedStatistics _structureToCheck)
                        throws java.lang.Exception
Throws:
java.lang.Exception

isEquivalent

protected boolean isEquivalent(EdgesWithCachedStatisticsI _referenceStructure,
                               EdgesWithCachedStatisticsI _structureToCheck)
                        throws java.lang.Exception
Throws:
java.lang.Exception

provideCollectedStatistics

public java.lang.StringBuffer provideCollectedStatistics()
                                                  throws java.lang.Exception
Specified by:
provideCollectedStatistics in interface EquivalenceCheckerI
Specified by:
provideCollectedStatistics in class EquivalenceChecker
Throws:
java.lang.Exception