|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.kmeans.KMeansCluster
public class KMeansCluster
Holds a cluster of MLData items that have been clustered by the KMeansClustering class.
| Constructor Summary | |
|---|---|
KMeansCluster()
|
|
| Method Summary | |
|---|---|
void |
add(MLData pair)
Add to the cluster. |
void |
calcSumOfSquares()
Calculate the sum of squares. |
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()
|
double |
getSumSqr()
|
void |
remove(MLData pair)
Remove the specified item. |
void |
setCentroid(Centroid c)
Set the centroid. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KMeansCluster()
| Method Detail |
|---|
public final void add(MLData pair)
add in interface MLClusterpair - The pair to add.public final void calcSumOfSquares()
public final MLDataSet createDataSet()
createDataSet in interface MLClusterpublic final MLData get(int pos)
get in interface MLClusterpos - The index of the data item to get.
public final Centroid getCentroid()
public final List<MLData> getData()
getData in interface MLClusterpublic final double getSumSqr()
public final void remove(MLData pair)
remove in interface MLClusterpair - The item to remove.public final void setCentroid(Centroid c)
c - The new centroid.public final int size()
size in interface MLCluster
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||