Skip to main content

Kdtree2_n_nearese

Find the 'nn' vectors in the tree nearest to 'qv' in euclidean norm returning their indexes and distances in 'indexes' and 'distances' arrays already allocated passed to this subroutine.

Interface

SUBROUTINE Kdtree2_n_nearest(tp, qv, nn, results)
TYPE(Kdtree2_), POINTER :: tp
REAL(kdkind), TARGET, INTENT(In) :: qv(:)
INTEGER, INTENT(In) :: nn
TYPE(Kdtree2Result_), TARGET :: results(:)
END SUBROUTINE Kdtree2_n_nearest