org.encog.util.kmeans
Interface Centroid<O>
-
- All Known Implementing Classes:
- BasicMLDataCentroid, BasicMLDataPairCentroid
public interface Centroid<O>A centroid.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidadd(O e)Add an element to the centroid.doubledistance(O o)The distance between this centroid and an element.voidremove(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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG