
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 |
|---|
SameSizeKMeansAlgorithm.PreferenceComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(int o1,
int o2)
Compare two integers.
|
IntegerComparator |
select(SameSizeKMeansAlgorithm.Meta c)
Set the meta to sort by
|
SameSizeKMeansAlgorithm.Meta c
public SameSizeKMeansAlgorithm.PreferenceComparator()
public int compare(int o1,
int o2)
IntegerComparatorcompare in interface IntegerComparatoro1 - First into2 - Second intpublic IntegerComparator select(SameSizeKMeansAlgorithm.Meta c)
c - Meta to sort by