agennls: agennls

Description Usage Arguments Value Examples

View source: R/agennls.R

Description

The function allows you to prepare the formula and start values for adaptive or generalized Gaussian decomposition using nlsLM.

Usage

1
agennls(A, u, sig, r)

Arguments

A

is the amplitude of waveform.

u

is the peak location of waveform.

sig

is the echo width of waveform.

r

is the rate parameter of adpative or generalized Gaussian distribution. For Gaussian distributionm, r is fixed to 2.

Value

return a formula suitable for different number of waveform componments with adaptive Gaussian distribution.

Examples

1
2
3
4
5
6
7
8
###these four should have the same length
A<-c(76,56,80);u<-c(29,40,67);sig<-c(4,3,2.5); r<-c(2,2,2)
fg<-agennls(A,u,sig,r)

##input formula for Gaussian decomposition
fgf<-fg$formula
###start values
fgs<-fg$start

tankwin08/waveformlidar documentation built on Sept. 26, 2020, 10:05 p.m.