public class SameSizeKMeansAlgorithm.PreferenceComparator extends Object implements IntegerComparator
Modifier and Type | Field and Description |
---|---|
(package private) SameSizeKMeansAlgorithm.Meta |
c
Meta to use for comparison.
|
Constructor and Description |
---|
PreferenceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(int o1,
int o2)
Compare two Integer.
|
IntegerComparator |
select(SameSizeKMeansAlgorithm.Meta c)
Set the meta to sort by
|
SameSizeKMeansAlgorithm.Meta c
public int compare(int o1, int o2)
IntegerComparator
compare
in interface IntegerComparator
o1
- First into2
- Second intpublic IntegerComparator select(SameSizeKMeansAlgorithm.Meta c)
c
- Meta to sort byCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.