gaussfunc: Gaussian Function

Description Usage Arguments Value Examples

View source: R/gaussfit.R

Description

This function returns the unnormalized (height of 1.0) Gaussian curve with a given center and spread.

Usage

1
gaussfunc(x, mu, sigma)

Arguments

x

the vector of values at which to evaluate the Gaussian

mu

the center of the Gaussian

sigma

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

Value

vector of values of the Gaussian

Examples

1
2
3
x = seq(-4, 4, length.out = 100)
y = gaussfunc(x, 0, 1)
plot(x, y)

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