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.

Jang-Hyun Kim, Jongmin Lee and Hee-Seok Oh. (2020). Spherical Principal Curves <arXiv:2003.02578>.

Jongmin Lee, Jang-Hyun Kim and Hee-Seok Oh. (2021). Spherical principal curves. IEEE Transactions on Pattern Analysis and Machine Intelligence, 43, 2165-2171. <doi.org/10.1109/TPAMI.2020.3025327>.

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 Oct. 7, 2021, 9:14 a.m.