Package moa.classifiers.meta
Class DACC.Pair
- java.lang.Object
-
- moa.classifiers.meta.DACC.Pair
-
- All Implemented Interfaces:
Serializable
,Comparable<DACC.Pair>
- Enclosing class:
- DACC
protected class DACC.Pair extends Object implements Comparable<DACC.Pair>, Serializable
This helper class is used to sort an array of pairs of integers: val and index. The array is sorted based on the val field.- Author:
- Ghazal Jaber
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Pair(double d, int i)
-
-
-
Method Detail
-
compareTo
public int compareTo(DACC.Pair other)
- Specified by:
compareTo
in interfaceComparable<DACC.Pair>
-
getValue
public double getValue()
-
-