gaussfunc {rvmethod} | R Documentation |
Gaussian Function
Description
This function returns the unnormalized (height of 1.0) Gaussian curve with a given center and spread.
Usage
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
x = seq(-4, 4, length.out = 100)
y = gaussfunc(x, 0, 1)
plot(x, y)
[Package rvmethod version 0.1.2 Index]