L
- Label type.public final class PointWithDistance<L> extends Object implements Comparable<PointWithDistance>
Constructor and Description |
---|
PointWithDistance(LabeledVector<L> pnt,
double distance)
Constructs a new instance of data point with distance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PointWithDistance o) |
double |
getDistance() |
LabeledVector<L> |
getPnt() |
public PointWithDistance(LabeledVector<L> pnt, double distance)
pnt
- Data point.distance
- Distance to target point.public LabeledVector<L> getPnt()
public double getDistance()
public int compareTo(PointWithDistance o)
compareTo
in interface Comparable<PointWithDistance>
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024