powered by
This function returns the unnormalized (height of 1.0) Gaussian curve with a given center and spread.
gaussfunc(x, mu, sigma)
the vector of values at which to evaluate the Gaussian
the center of the Gaussian
the spread of the Gaussian (must be greater than 0)
vector of values of the Gaussian
# NOT RUN { x = seq(-4, 4, length.out = 100) y = gaussfunc(x, 0, 1) plot(x, y) # }
Run the code above in your browser using DataLab