gauss1func: A Single Gaussian Absorption Feature

Description Usage Arguments Value Examples

View source: R/gaussfit.R

Description

This function returns a Gaussian absorption feature with continuum 1.0 and a specified amplitude, center, and spread.

Usage

1
gauss1func(x, a1, mu1, sig1)

Arguments

x

the vector of values at which to evaluate

a1

the amplitude of the feature

mu1

the center of the feature

sig1

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

Value

vector of values of the specified inverted Gaussian

Examples

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

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