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.util.kmeans
Interface Centroid<O>

All Known Implementing Classes:
  BasicMLDataCentroid, BasicMLDataPairCentroid

    public interface Centroid<O>

A centroid.

Method Summary
`void` | `add(O e)` Add an element to the centroid.
`double` | `distance(O o)` The distance between this centroid and an element.
`void` | `remove(O o)` Remove an element from the centroid.

Method Detail

### add

    void add(O e)

  Add an element to the centroid.

  Parameters:
    `e` - The element to add.

### remove

    void remove(O o)

  Remove an element from the centroid.

  Parameters:
    `o` - The element to remove.

### distance

    double distance(O o)

  The distance between this centroid and an element.

  Parameters:
    `o` - The element.
  Returns:
    The distance.

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 © 2012. All Rights Reserved.