Learn R Programming

LPCM (version 0.47-6)

lpc.project: Projection onto LPC

Description

Projects a new observation onto the spline representation of the local principal curve.

Usage

lpc.project(object, newdata, ...)

Value

closest.pi

Projection index of projected point(s) (in cubic spline parametrization).

closest.or.pi

Projection index of projected point(s) (in terms of the original LPC parametrization).

closest.coords

Coordinates of projected data point(s)

closest.dist

Euclidean distance between data point(s) and their projected counterpart(s).

closest.branch

ID of branch onto which the data point was projected (the IDs get allocated in the output component $Parametrization of function lpc).

Arguments

object

Object of class lpc or lpc.spline.

newdata

A data frame containing the new data to be projected.

...

Additional arguments to be passed to lpc.project.spline.

Author

J. Einbeck and L. Evers

References

Einbeck, J., Evers, L. & Hinchliff, K. (2010): Data compression and regression based on local principal curves. In A. Fink, B. Lausen, W. Seidel, and A. Ultsch (Eds), Advances in Data Analysis, Data Handling, and Business Intelligence, Heidelberg, pp. 701--712, Springer.

See Also

lpc, lpc.spline

Examples

Run this code
data(gvessel)
gvessel.lpc <- lpc(gvessel[,c(2,4,5)], scaled=TRUE,   h=0.11,  x0=c(35, 1870, 6.3))
lpc.project(gvessel.lpc, newdata=data.frame(salg=35,dephtg= 2000,oxyg=6))

Run the code above in your browser using DataLab