powered by
This function performs the approximated projection for each data.
Proj.Hauberg(data, line)
matrix or data frame consisting of spatial locations with two columns. Each row represents longitude and latitude.
longitude and latitude of line as a matrix or data frame with two columns.
matrix consisting of spatial locations with two columns.
This function returns the nearest points in line for each point in the data. The function requires to load the 'geosphere' R package.
line
Hauberg, S. (2016). Principal curves on Riemannian manifolds. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38, 1915-1921.
SPC.Hauberg
# NOT RUN { library(geosphere) Proj.Hauberg(rbind(c(0, 0), c(10, -20)), rbind(c(50, 10), c(40, 20), c(30, 30))) # }
Run the code above in your browser using DataLab