getClosePoints: Find close points

View source: R/getMaxNumOpt.R

getClosePointsR Documentation

Find close points

Description

Obtain points close in one specific dimension

Usage

getClosePoints(x, allPts, whichDim)

Arguments

x

one dimensional point

allPts

dataframe containing a list of d dimensional points

whichDim

integer defining the dimension of x

Value

the index in allPts (row number) of the closest point in allPts to x along the whichDim dimension

Author(s)

Dario Azzimonti


profExtrema documentation built on July 21, 2026, 5:09 p.m.