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.


Copyright © 2014. All Rights Reserved.