SSgaussAmp: Self-Starting nls amplitude of gaussian model

SSgaussAmpR Documentation

Self-Starting nls amplitude of gaussian model

Description

Amplitude version of gaussian peak function.

Usage

SSgaussAmp(input,y0,A,xc,w)

Arguments

input

a numeric vector of values at which to evaluate the model.

y0

offset

A

amplitude

xc

center

w

width

Value

a numeric vector of the same length as input. It is the value of the expression y0+A*exp(-(x-xc)^2/2*w^2).

Note

This is primarily intended for use in formulae given to the nls function or similar functions for example mle2.

Author(s)

Krzysztof Trajkowski

References

Origin: http://www.originlab.com/doc/Origin-Help/GaussAmp-FitFunc.

See Also

selfStart, getInitial

Examples

data(smoking)
model <- nlsLM(Germany ~ SSgaussAmp(year,y0,A,xc,w),data=smoking)

krzysiektr/FitCurve documentation built on Jan. 24, 2025, 1:29 a.m.