Proj.Hauberg: Projecting the nearest point

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/spherepc.R

Description

This function performs the approximated projection for each data.

Usage

1

Arguments

data

matrix or data frame consisting of spatial locations with two columns. Each row represents longitude and latitude.

line

longitude and latitude of line as a matrix or data frame with two columns.

Details

This function returns the nearest points in line for each point in the data. The function requires to load the 'geosphere' R package.

Value

matrix consisting of spatial locations with two columns.

Author(s)

Jongmin Lee

References

Hauberg, S. (2016). Principal curves on Riemannian manifolds. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38, 1915-1921.

See Also

SPC.Hauberg

Examples

1
2
library(geosphere)
Proj.Hauberg(rbind(c(0, 0), c(10, -20)), rbind(c(50, 10), c(40, 20), c(30, 30)))

spherepc documentation built on April 14, 2020, 6:41 p.m.