|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnct.filter.DuplicateThresholdFilter<NodeType,WeightType>
public class DuplicateThresholdFilter<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>
This class will throw out any solutions with a certain percentage of duplicate nodes. This filter is NOT synchronized! (HashSet)
| Constructor Summary | |
|---|---|
DuplicateThresholdFilter(double thresh)
Sets the threshold according to the given value. |
|
| Method Summary | |
|---|---|
java.util.List<Graph<NodeType,WeightType>> |
filter(java.util.List<Graph<NodeType,WeightType>> solutions)
Given the solutions, this filter compares the nodes contained in each graph, calculates the percentage of identical nodes, and throws out any solutions that have a percent identity greater than or equal to the specified threshold. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DuplicateThresholdFilter(double thresh)
thresh - The threshold to check against| Method Detail |
|---|
public java.util.List<Graph<NodeType,WeightType>> filter(java.util.List<Graph<NodeType,WeightType>> solutions)
filter in interface Filter<NodeType extends java.lang.Comparable<? super NodeType>,WeightType extends java.lang.Comparable<? super WeightType>>solutions - The List of solutions to process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||