org.encog.ml.kmeans
Constructor and Description |
---|
BasicCluster(Cluster<BasicMLDataPair> cluster)
Construct a cluster from another.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MLData pair)
Add to the cluster.
|
MLDataSet |
createDataSet()
Create a dataset from the clustered data.
|
MLData |
get(int pos)
Get the specified data item by index.
|
Centroid<?> |
getCentroid() |
List<MLData> |
getData() |
void |
remove(MLData pair)
Remove the specified item.
|
void |
setCentroid(BasicMLDataPairCentroid c)
Set the centroid.
|
int |
size() |
public BasicCluster(Cluster<BasicMLDataPair> cluster)
cluster
- The other cluster.public final void add(MLData pair)
public final MLDataSet createDataSet()
createDataSet
in interface MLCluster
public final MLData get(int pos)
public final Centroid<?> getCentroid()
public final void remove(MLData pair)
public final void setCentroid(BasicMLDataPairCentroid c)
c
- The new centroid.Copyright © 2014. All Rights Reserved.