gauss2func: Two Gaussian Absorption Features

Description Usage Arguments Value Examples

View source: R/gaussfit.R

Description

This function returns two Gaussian absorption features, both with continuum 1.0 and each with a specified amplitude, center, and spread.

Usage

1
gauss2func(x, a1, a2, mu1, mu2, sig1, sig2)

Arguments

x

the vector of values at which to evaluate

a1

the amplitude of the first feature

a2

the amplitude of the second feature

mu1

the center of the first feature

mu2

the center of the second feature

sig1

the spread of the first feature (must be greater than 0)

sig2

the spread of the second feature (must be greater than 0)

Value

vector of values of the two specified inverted Gaussians

Examples

1
2
3
x = seq(5000, 5003, length.out=200)
y = gauss2func(x, 0.3, 0.5, 5001.5, 5002, 0.1, 0.1)
plot(x, y)

rvmethod documentation built on Aug. 10, 2020, 5:07 p.m.