This function performs the approximated projection for each data.
Usage
Proj.Hauberg(data, line)
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.
Value
matrix consisting of spatial locations 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.
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>.