Learn R Programming

waveformlidar (version 1.2.0)

wgennls: wgennls

Description

The function allows you to prepare the formula and start values for the decomposition using Weibull functions.

Usage

wgennls(A, u, sig, k)

Arguments

A

is the amplitude of waveform.

u

is a location parameter in the Weibull model, but this one is different from Gaussian or adaptive Gaussian distribution.

sig

the scale parameter that controls the spread of the distribution,sig>0.

k

is the shape parameter that controls the behaviour or the shape of distribution, k>0.

Value

A formula suitable for different number of waveform componments with Weibull distribution.

Examples

Run this code
# NOT RUN {
A<-c(1000,900,1500);u<-c(-3,-5,0);sig<-c(30,40,75); k<-c(3,3,3)
##these four should have the same length
fg<-wgennls(A,u,sig,k)
##input formula for Gaussian decomposition
fgf<-fg$formula
###start values
fgs<-fg$start
# }

Run the code above in your browser using DataLab