Package smile.clustering
Interface Clustering<T>
-
- Type Parameters:
T- the type of input object.
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
CLARANS,KMeans,PartitionClustering
public interface Clustering<T> extends java.io.SerializableClustering interface.- Author:
- Haifeng Li
-
-
Field Summary
Fields Modifier and Type Field Description static intOUTLIERCluster label for outliers or noises.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intpredict(T x)Cluster a new instance.
-
-
-
Field Detail
-
OUTLIER
static final int OUTLIER
Cluster label for outliers or noises.- See Also:
- Constant Field Values
-
-
Method Detail
-
predict
int predict(T x)
Cluster a new instance.- Parameters:
x- a new instance.- Returns:
- the cluster label.
-
-