## Uses of Class
org.apache.ignite.ml.knn.utils.PointWithDistance

- Packages that use PointWithDistance
  Package | Description
  --- | ---
  org.apache.ignite.ml.knn.utils | Contains util functionality for kNN algorithms.

- - ### Uses of PointWithDistance in org.apache.ignite.ml.knn.utils

    Methods in org.apache.ignite.ml.knn.utils with parameters of type PointWithDistance
    Modifier and Type | Method and Description
    --- | ---
    `int` | PointWithDistance.`compareTo(PointWithDistance o)`

    Method parameters in org.apache.ignite.ml.knn.utils with type arguments of type PointWithDistance
    Modifier and Type | Method and Description
    --- | ---
    `static <L> List<LabeledVector<L>>` | PointWithDistanceUtil.`transformToListOrdered(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).

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.13.0
Release Date | : April 20 2022