Package | Description |
---|---|
org.apache.ignite.ml.knn.utils |
Contains util functionality for kNN algorithms.
|
Modifier and Type | Method and Description |
---|---|
int |
PointWithDistance.compareTo(PointWithDistance o) |
Modifier and Type | Method and Description |
---|---|
static <L> List<LabeledVector<L>> |
PointWithDistanceUtil.transfomToListOrdered(Queue<PointWithDistance<L>> points)
Util method that transforms collection of
PointWithDistance to array of LabeledVector . |
static <L> void |
PointWithDistanceUtil.tryToAddIntoHeap(Queue<PointWithDistance<L>> heap,
int k,
LabeledVector<L> dataPnt,
double distance)
Util method that adds data point into heap if it fits (if heap size is less than
k or a distance from
taget point to data point is less than a distance from target point to the most distant data point in heap). |
static <L> void |
PointWithDistanceUtil.tryToAddIntoHeap(Queue<PointWithDistance<L>> heap,
int k,
Vector pnt,
List<LabeledVector<L>> dataPnts,
DistanceMeasure distanceMeasure)
Util method that adds data points into heap if they fits (if heap size is less than
k or a distance from
taget point to data point is less than a distance from target point to the most distant data point in heap). |
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024