public class KMeansModel extends Object implements Serializable
Constructor and Description |
---|
KMeansModel() |
Modifier and Type | Method and Description |
---|---|
void |
add(DataPoint x) |
void |
clearClusterMembers() |
boolean |
contains(DataPoint x) |
List<Cluster> |
getClusterList() |
double[] |
getCoordinatesOfCentroidOfCluster(int index) |
String |
getModelInfo() |
Object[] |
getPrediction(double[] coordinateValuesOfCurrentDataPoint) |
boolean |
isTrained() |
void |
refresh(List<DataPoint> dataPointsArray,
int noOfClusters,
int maxIterations,
int noOfDimensions) |
void |
setClusterList(List<Cluster> clusterList) |
void |
setTrained(boolean trained) |
int |
size() |
public boolean isTrained()
public void clearClusterMembers()
public boolean contains(DataPoint x)
public void add(DataPoint x)
public int size()
public double[] getCoordinatesOfCentroidOfCluster(int index)
public String getModelInfo()
public void setTrained(boolean trained)
public void refresh(List<DataPoint> dataPointsArray, int noOfClusters, int maxIterations, int noOfDimensions)
public Object[] getPrediction(double[] coordinateValuesOfCurrentDataPoint)
Copyright © 2019 WSO2. All rights reserved.