Catalano.MachineLearning.Clustering
Interface ICentroidClustering
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- KMeans
public interface ICentroidClustering extends java.io.SerializableCommon interface for centroid based clustering algorithms.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidCompute(DatasetClassification dataset)Compute the data.voidCompute(double[][] input)Compute the data.double[][]getCentroids()Get the centroids of the clustering.intPredict(double[] x)Cluster a new instance.
-
-
-
Method Detail
-
Compute
void Compute(DatasetClassification dataset)
Compute the data.- Parameters:
dataset- Dataset.
-
Compute
void Compute(double[][] input)
Compute the data.- Parameters:
input- Data.
-
Predict
int Predict(double[] x)
Cluster a new instance.- Parameters:
x- a new instance.- Returns:
- the cluster label.
-
getCentroids
double[][] getCentroids()
Get the centroids of the clustering.- Returns:
- Centroids.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG