protected class GridSearch.PerformanceComparator extends Object implements Comparator<GridSearch.Performance>, Serializable, RevisionHandler
GridSearch.Performance
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected int |
m_Evaluation
the performance measure to use for comparison
|
Constructor and Description |
---|
PerformanceComparator(int evaluation)
initializes the comparator with the given performance measure
|
Modifier and Type | Method and Description |
---|---|
int |
compare(GridSearch.Performance o1,
GridSearch.Performance o2)
Compares its two arguments for order.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this Comparator.
|
int |
getEvaluation()
returns the performance measure that's used to compare the objects
|
String |
getRevision()
Returns the revision string.
|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected int m_Evaluation
GridSearch.TAGS_EVALUATION
public PerformanceComparator(int evaluation)
evaluation
- the performance measure to useGridSearch.TAGS_EVALUATION
public int getEvaluation()
GridSearch.TAGS_EVALUATION
public int compare(GridSearch.Performance o1, GridSearch.Performance o2)
compare
in interface Comparator<GridSearch.Performance>
o1
- the first performanceo2
- the second performancepublic boolean equals(Object obj)
equals
in interface Comparator<GridSearch.Performance>
equals
in class Object
obj
- the object to compare withpublic String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.