Module math
Package de.lmu.ifi.dbs.elki.utilities.pairs
package de.lmu.ifi.dbs.elki.utilities.pairs
Pairs and triples utility classes.
Pairs and triples are frequently used classes and reimplemented too often.
-
invalid reference
Pair
-
invalid reference
FCPair
-
invalid reference
CPair
-
invalid reference
SCPair
Due to limitations in object subclassing,
cannot be
a subclass of
invalid reference
CPair
, since a class cannot implement
the Comparable interface twice.invalid reference
FCPair
Also primitive types cannot be used in Generics, resulting in the following classes for primitive types:
IntIntPair
storing twoint
valuesDoubleIntPair
storing onedouble
and oneint
value.-
invalid reference
IntDoublePair
int
and onedouble
value. DoubleDoublePair
storing twodouble
values
Triples can be used via:
-
invalid reference
Triple
-
invalid reference
CTriple
If you need a triple comparable in just particular components, either define a comparator for sorting or subclass Triple appropriately.
-
ClassDescriptionPair storing two doubles.Pair storing an integer and a double.Pair storing two integers.PairInterface<FIRST,
SECOND> Pair interface.