fitAAE: fitAAE a Function

Description Usage Arguments Value Examples

Description

Computes the absorption Angstrom exponent (AAE) for a given data set.

Usage

1
fitAAE <- function(y, x = c(406, 532, 662, 785), type = 'nls')

Arguments

y

A vector of y values (typically absorption) corresponding to the wavelengths in X.

x

A vector of wavelengths corresponding to the absorption values in y.

type

A character string indicating the type of fit to perform; 'nls' uses nls and 'linear' uses lm.

Value

The AAE of the dataset.

Examples

1
apply(y[, 2:5], 1, fitAAE)

alphonse/aeRo documentation built on May 11, 2019, 11:21 p.m.