gennls: gennls

Description Usage Arguments Value Examples

View source: R/gennls.R

Description

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

Usage

1
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

1
2
3
4
5
6
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

waveformlidar documentation built on Aug. 1, 2020, 5:07 p.m.