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.
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
- ord
the order of the fitted points
- lambda
The projection index for each point
- dist
The total squared distance from the curve
- dist_ind
The squared distances from the curve to each of the respective points