Learn R Programming

waveformlidar (version 1.2.0)

gennls: gennls

Description

The function allows you to prepare the formula and start values for Gaussian decomposition

Usage

gennls(A, u, sig)

Arguments

A

is the amplitude of waveform.

u

is the peak location of waveform.

sig

is the echo width of waveform.

Value

return a formula suitable for different number of waveform componments with Gaussian distribution.The number of componments needs to be determined by the users. Generally you need to use peakfind function to roughly estimate the number of waveform componments

Examples

Run this code
# NOT RUN {
A<-c(76,56,80);u<-c(29,40,67);sig<-c(4,3,2.5) ##these three should have the same length
fg<-gennls(A,u,sig)
##input formula for Gaussian decomposition
fgf<-fg$formula
###start values
fgs<-fg$start
# }

Run the code above in your browser using DataLab