jncc20
Class MdlDiscretizer.Pair

java.lang.Object
  extended by 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, to effectively store and access feature-class pairs


Field Summary
private  java.lang.Integer ClassValue
           
private  java.lang.Double FeatureValue
           
 
Constructor Summary
MdlDiscretizer.Pair(double SuppliedFeatureValue, int SuppliedClassValue)
           
 
Method Summary
 int compareTo(java.lang.Object SecondPair)
          Compares two Pair objects for ordering.
 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
 

Field Detail

ClassValue

private java.lang.Integer ClassValue

FeatureValue

private java.lang.Double FeatureValue
Constructor Detail

MdlDiscretizer.Pair

MdlDiscretizer.Pair(double SuppliedFeatureValue,
                    int SuppliedClassValue)
Method Detail

compareTo

public int compareTo(java.lang.Object SecondPair)
              throws java.lang.ClassCastException
Compares two Pair objects for ordering.

Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException

getClassValue

public java.lang.Integer getClassValue()

getFeatureValue

public java.lang.Double getFeatureValue()