|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.data.basic.BasicMLDataCentroid
public class BasicMLDataCentroid
A basic implementation of a centroid.
| Constructor Summary | |
|---|---|
BasicMLDataCentroid(MLData o)
Construct the centroid. |
|
| Method Summary | |
|---|---|
void |
add(MLData d)
Add an element to the centroid. |
double |
distance(MLData d)
The distance between this centroid and an element. |
void |
remove(MLData d)
Remove an element from the centroid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicMLDataCentroid(MLData o)
o - The object to base the centroid on.| Method Detail |
|---|
public void add(MLData d)
add in interface Centroid<MLData>d - The element to add.public void remove(MLData d)
remove in interface Centroid<MLData>d - The element to remove.public double distance(MLData d)
distance in interface Centroid<MLData>d - The element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||