get_distance: Distance to a smooth curve

View source: R/utils.R

get_distanceR Documentation

Distance to a smooth curve

Description

Finds the distance of a discrete open srv curve to a smooth curve

Usage

get_distance(srv_curve, s, q, eps = 10 * .Machine$double.eps)

Arguments

srv_curve

srv transformation of the smooth curve, needs to be vectorized

s

time points for q, first has to be 0, last has to be 1

q

square root velocity vectors, one less than time points in s

eps

convergence tolerance

Value

distance between srv_curve and q


elastes documentation built on Aug. 21, 2023, 5:12 p.m.