findNearestPoint: Determines which point in a list is closest to the input.

Description Usage Arguments

View source: R/dspoint.R

Description

Determines which point in a list is closest to the input.

Usage

1
findNearestPoint(x, y, points, eps, deep = TRUE)

Arguments

x

A numeric x coordinate.

y

A numeric y coordinate.

points

A list comprised of x coordinates, y coordinates, such as output by pointsToList. Should represent the attractors of fun.

eps

An epsilon, expected to already be squared, used to determine when a point is close enough. Only important if deep is true.

deep

If true, only return a point if it is within epsilon distance. Otherwise, return the closest point.


dsmodels documentation built on May 19, 2017, 11:42 p.m.

Search within the dsmodels package
Search all R packages, documentation and source code