public class KMeansModel extends Object implements Serializable
Constructor and Description |
---|
KMeansModel() |
KMeansModel(KMeansModel model) |
KMeansModel(List<Cluster> clusterList) |
Modifier and Type | Method and Description |
---|---|
void |
add(DataPoint x) |
void |
clear() |
void |
clearClusterMembers() |
boolean |
contains(DataPoint x) |
DataPoint |
getCentroidOfCluster(int index) |
List<Cluster> |
getClusterList() |
double[] |
getCoordinatesOfCentroidOfCluster(int index) |
String |
getModelInfo() |
int |
indexOf(DataPoint x) |
void |
setClusterList(List<Cluster> clusterList) |
int |
size() |
void |
update(int index,
double[] x) |
public KMeansModel()
public KMeansModel(KMeansModel model)
public void clear()
public void clearClusterMembers()
public boolean contains(DataPoint x)
public void add(DataPoint x)
public void update(int index, double[] x)
public int size()
public double[] getCoordinatesOfCentroidOfCluster(int index)
public DataPoint getCentroidOfCluster(int index)
public int indexOf(DataPoint x)
public String getModelInfo()
Copyright © 2017 WSO2. All rights reserved.