lpc.project | R Documentation |
Projects a new observation onto the spline representation of the local principal curve.
lpc.project(object, newdata, ...)
object |
Object of class |
newdata |
A data frame containing the new data to be projected. |
... |
Additional arguments to be passed to |
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
|
The parametrization of the cubic spline function is not exactly the same as that of the original LPC. The reason is that the latter uses Euclidean distances between centers of masses, while the former uses the arc length along the cubic spline. The differences are normally quite small, though.
J. Einbeck and L. Evers
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.
lpc
, lpc.spline
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.