protected class KNearestNeighborExhaustive.Neighbor extends AbstractCloneableSerializable implements java.lang.Comparable<KNearestNeighborExhaustive.Neighbor>
| Constructor and Description |
|---|
Neighbor(OutputType value,
double divergence)
Creates a new neighbor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(KNearestNeighborExhaustive.Neighbor other) |
clonepublic Neighbor(OutputType value, double divergence)
value - The value associated with the neighbor.divergence - public int compareTo(KNearestNeighborExhaustive.Neighbor other)
compareTo in interface java.lang.Comparable<KNearestNeighborExhaustive.Neighbor>