org.encog.ml
Interface MLCluster
-
- All Known Implementing Classes:
- BasicCluster
public interface MLClusterDefines a cluster. Usually used with the MLClustering method to break input into clusters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidadd(MLData pair)Add data to this cluster.MLDataSetcreateDataSet()Create a machine learning dataset from the data.MLDataget(int pos)Get the specified data item by index.java.util.List<MLData>getData()voidremove(MLData data)Remove the specified item.intsize()
-
-
-
Method Detail
-
add
void add(MLData pair)
Add data to this cluster.- Parameters:
pair- The data to add.
-
createDataSet
MLDataSet createDataSet()
Create a machine learning dataset from the data.- Returns:
- A dataset.
-
get
MLData get(int pos)
Get the specified data item by index.- Parameters:
pos- The index of the data item to get.- Returns:
- The data item.
-
getData
java.util.List<MLData> getData()
- Returns:
- The data in this cluster.
-
remove
void remove(MLData data)
Remove the specified item.- Parameters:
data- The item to remove.
-
size
int size()
- Returns:
- The number of items.
-
-
DMelt 3.0 © DataMelt by jWork.ORG