Learn R Programming

waveformlidar (version 1.2.0)

decom.weibull: decom.weibull

Description

The function allows you to fit waveforms with the Weibull function and get parameters estimated.

Usage

decom.weibull(x, smooth = TRUE, thres = 0.22, width = 3)

Arguments

x

is a waveform with a index at the begining and followed with intensities.

smooth

is tell whether you want to smooth the waveform to remove some obvious outliers. Default is TRUE.

thres

is to determine if the detected peak is the real peak whose intensity should be higher than threshold*maximum intensity. Default is 0.22.

width

width of moving window.Default is 3, must be odd integer between 1 and n.This parameter ONLY work when the smooth is TRUE.

Value

A list contains estimates of A (amplitude parameter), u (location parameter), sigma (scale parameter) and k (shape parameter) after decomposition. these parameters are different from the adaptive Gaussian and Gaussian decomposition.

References

Tan Zhou, and Sorin C. Popescu, 2017. Bayesian decomposition of full waveform LiDAR data with uncertainty analysis. Remote Sensing of Environment 200 (2017): 43-62.

Examples

Run this code
# NOT RUN {
##import return waveform data
data(return)
lr<-nrow(return)
ind<-c(1:lr)
return<-data.frame(ind,return)
x<-return[1,] ###must be a dataset including intensity with index at the beginning.
r1<-decom.weibull(x)

r2<-decom.weibull(return[2,])

# }
# NOT RUN {
# for the whole dataset
dr3<-apply(return,1,decom.weibull)
dd<-return[10:20,]
dr4<-apply(dd,1,decom.weibull)
# }

Run the code above in your browser using DataLab