wgennls: wgennls

Description Usage Arguments Value Examples

View source: R/wgennls.R

Description

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

Usage

1
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

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

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