jncc20
Class MdlDiscretizer.Pair
java.lang.Object
jncc20.MdlDiscretizer.Pair
- All Implemented Interfaces:
- java.lang.Comparable
- Enclosing class:
- MdlDiscretizer
private static class MdlDiscretizer.Pair
- extends java.lang.Object
- implements java.lang.Comparable
Helper class for MdlDiscretizer, which effectively stores feature-class pairs
Method Summary |
int |
compareTo(java.lang.Object secondPair)
Compares two Pair, ordering the on the basis of the feature value. |
java.lang.Integer |
getClassValue()
|
java.lang.Double |
getFeatureValue()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassValue
private java.lang.Integer ClassValue
FeatureValue
private java.lang.Double FeatureValue
MdlDiscretizer.Pair
MdlDiscretizer.Pair(double SuppliedFeatureValue,
int SuppliedClassValue)
compareTo
public int compareTo(java.lang.Object secondPair)
throws java.lang.ClassCastException
- Compares two Pair, ordering the on the basis of the feature value. Returns:
a negative integer, zero, or a positive integer if the this Pair object object
is less than, equal to, or greater than the supplied Pair.
- Specified by:
compareTo
in interface java.lang.Comparable
- Throws:
java.lang.ClassCastException
getClassValue
public java.lang.Integer getClassValue()
getFeatureValue
public java.lang.Double getFeatureValue()