nlsGaussianSum: Fit a nls model using multiple Gaussian functions.

Description Usage Arguments Value

View source: R/nlsGaussianSum.R

Description

Fit a nls model using multiple Gaussian functions.

Usage

1
2
nlsGaussianSum(y, x = seq_along(y), n = 1, spar = 0.5,
  with.plot = FALSE, quiet = TRUE)

Arguments

y

A numeric vector of intensity/signal values.

x

An optional vector of x values.

n

The number of components to fit.

spar

A smoothness parameter that is passed to smooth.spline. Used to presmooth the data.

with.plot

If diagnostic plots should be made.

Value

The fitted nls model.


hafenr/MACode documentation built on May 17, 2019, 2:24 p.m.