org.dllearner.algorithms.refinement2
Class NodeComparatorStable

java.lang.Object
  extended by org.dllearner.algorithms.refinement2.NodeComparatorStable
All Implemented Interfaces:
Comparator<ExampleBasedNode>

public class NodeComparatorStable
extends Object
implements Comparator<ExampleBasedNode>

This comparator is stable, because it only takes covered examples, concept length and the concepts itself (using again a stable comparator) into account, which do not change during the run of the algorithm.

Author:
Jens Lehmann

Constructor Summary
NodeComparatorStable()
           
 
Method Summary
 int compare(ExampleBasedNode n1, ExampleBasedNode n2)
           
 boolean equals(Object o)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeComparatorStable

public NodeComparatorStable()
Method Detail

compare

public int compare(ExampleBasedNode n1,
                   ExampleBasedNode n2)
Specified by:
compare in interface Comparator<ExampleBasedNode>

equals

public boolean equals(Object o)
Specified by:
equals in interface Comparator<ExampleBasedNode>
Overrides:
equals in class Object


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann