# NOT RUN {
# Get the example laz file
normlas.file = system.file("extdata", "lidar_example.laz", package="leafR")
# Calculate LAD from voxelization
VOXELS_LAD = lad.voxels(normlas.file,
grain.size = 2)
# Calculate the LAD profile
lad_profile = lad.profile(VOXELS_LAD, relative = TRUE)
FHD(lad_profile, evenness = FALSE)
FHD(lad_profile, evenness = TRUE)
# }
Run the code above in your browser using DataLab