Projection Index

Usage

get.lam(x, s, tag, stretch = 2)

Arguments

x a matrix of data points
s a parametrized curve, represented by a polygon.
tag the order of the point in s. Default is the given order.
stretch A stretch factor for the endpoints of the curve; a maximum of 2. it allows the curve to grow, if required, and helps avoid bunching at the end.

Description

Finds the projection index for a matrix of points x, when projected onto a curve s. The curve need not be of the same length as the number of points. If the points on the curve are not in order, this order needs to be given as well, in tag.

Value

A structure is returned which represents a fitted curve. It has components
s The fitted points on the curve corresponding to each point x.
tag the order of the fitted points
lambda The projection index for each point
dist The total squared distance from the curve

See Also

principal.curve


[Package Contents]