Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.ml
Interface MLCluster

All Known Implementing Classes:
  KMeansCluster

    public interface MLCluster

Defines a cluster. Usually used with the MLClustering method to break input into clusters.

Method Summary
`void` | `add(MLData pair)` Add data to this cluster.
`MLDataSet` | `createDataSet()` Create a machine learning dataset from the data.
`MLData` | `get(int pos)` Get the specified data item by index.
`List<MLData>` | `getData()`
`void` | `remove(MLData data)` Remove the specified item.
`int` | `size()`

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

    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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.