Package | Description |
---|---|
tutorial.clustering |
Classes from the tutorial on implementing a custom k-means variation
|
Modifier and Type | Field and Description |
---|---|
(package private) SameSizeKMeansAlgorithm.Meta |
SameSizeKMeansAlgorithm.PreferenceComparator.c
Meta to use for comparison.
|
Modifier and Type | Method and Description |
---|---|
protected WritableDataStore<SameSizeKMeansAlgorithm.Meta> |
SameSizeKMeansAlgorithm.initializeMeta(Relation<V> relation,
double[][] means)
Initialize the metadata storage.
|
Modifier and Type | Method and Description |
---|---|
it.unimi.dsi.fastutil.ints.IntComparator |
SameSizeKMeansAlgorithm.PreferenceComparator.select(SameSizeKMeansAlgorithm.Meta c)
Set the meta to sort by
|
protected void |
SameSizeKMeansAlgorithm.transfer(WritableDataStore<SameSizeKMeansAlgorithm.Meta> metas,
SameSizeKMeansAlgorithm.Meta meta,
ModifiableDBIDs src,
ModifiableDBIDs dst,
DBIDRef id,
int dstnum)
Transfer a single element from one cluster to another.
|
Modifier and Type | Method and Description |
---|---|
protected ArrayModifiableDBIDs |
SameSizeKMeansAlgorithm.initialAssignment(java.util.List<ModifiableDBIDs> clusters,
WritableDataStore<SameSizeKMeansAlgorithm.Meta> metas,
DBIDs ids) |
protected double[][] |
SameSizeKMeansAlgorithm.refineResult(Relation<V> relation,
double[][] means,
java.util.List<ModifiableDBIDs> clusters,
WritableDataStore<SameSizeKMeansAlgorithm.Meta> metas,
ArrayModifiableDBIDs tids)
Perform k-means style iterations to improve the clustering result.
|
protected void |
SameSizeKMeansAlgorithm.transfer(WritableDataStore<SameSizeKMeansAlgorithm.Meta> metas,
SameSizeKMeansAlgorithm.Meta meta,
ModifiableDBIDs src,
ModifiableDBIDs dst,
DBIDRef id,
int dstnum)
Transfer a single element from one cluster to another.
|
protected void |
SameSizeKMeansAlgorithm.updateDistances(Relation<V> relation,
double[][] means,
WritableDataStore<SameSizeKMeansAlgorithm.Meta> metas,
NumberVectorDistanceFunction<? super V> df)
Compute the distances of each object to all means.
|
Copyright © 2019 ELKI Development Team. License information.