|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.data.basic.BasicMLDataPairCentroid
public class BasicMLDataPairCentroid
A centroid for BasicMLDataPair.
Constructor Summary | |
---|---|
BasicMLDataPairCentroid(BasicMLDataPair o)
Construct the centroid. |
Method Summary | |
---|---|
void |
add(MLDataPair d)
Add an element to the centroid. |
double |
distance(MLDataPair d)
The distance between this centroid and an element. |
void |
remove(MLDataPair 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 BasicMLDataPairCentroid(BasicMLDataPair o)
o
- The pair to base the centroid on.Method Detail |
---|
public void remove(MLDataPair d)
remove
in interface Centroid<MLDataPair>
d
- The element to remove.public double distance(MLDataPair d)
distance
in interface Centroid<MLDataPair>
d
- The element.
public void add(MLDataPair d)
add
in interface Centroid<MLDataPair>
d
- The element to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |