Package smile.clustering
Interface Clustering
public interface Clustering
Clustering utility functions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Iterative clustering algorithm hyperparameters. -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
TRuns a clustering algorithm multiple times and return the best one (e.g.
-
Field Details
-
OUTLIER
static final int OUTLIERCluster label for outliers or noises.- See Also:
-
-
Method Details
-
run
Runs a clustering algorithm multiple times and return the best one (e.g. smallest distortion).- Type Parameters:
T
- the type of clustering.- Parameters:
runs
- the number of runs.clustering
- the clustering algorithm.- Returns:
- the model.
-