Class IntDoublePair
java.lang.Object
org.tribuo.util.IntDoublePair
A Pair of a primitive int and a primitive double.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator
<IntDoublePair> Compare pairs by value.static Comparator
<IntDoublePair> Compare pairs by index.static Comparator
<IntDoublePair> Compare pairs by value.toString()
-
Field Details
-
index
-
value
-
-
Constructor Details
-
IntDoublePair
-
-
Method Details
-
pairIndexComparator
Compare pairs by index.- Returns:
- Comparator over indices.
-
pairValueComparator
Compare pairs by value. Ascending order.- Returns:
- Comparator over absolute values.
-
pairDescendingValueComparator
Compare pairs by value. Descending order.- Returns:
- Comparator over absolute values.
-
toString
-