knnidw

0th

Percentile

Spatial Interpolation Algorithm

This function is made to be used in grid_terrain or lasnormalize. It implements an algorithm for spatial interpolation. Interpolation is done using a k-nearest neighbour (KNN) approach with an inverse-distance weighting (IDW).

Usage
knnidw(k = 10, p = 2)
Arguments
k

numeric. Number of k-nearest neighbours. Default 10.

p

numeric. Power for inverse-distance weighting. Default 2.

See Also

Other spatial interpolation algorithms: kriging, tin

Aliases
  • knnidw
Examples
# NOT RUN {
LASfile <- system.file("extdata", "Topography.laz", package="lidR")
las = readLAS(LASfile)

# plot(las)

dtm = grid_terrain(las, algorithm = tin())

plot(dtm, col = terrain.colors(50))
plot_dtm3d(dtm)
# }
Documentation reproduced from package lidR, version 2.0.0, License: GPL-3

Community examples

Looks like there are no examples yet.