View source: R/gaussianShape.R
gaussianShape | R Documentation |
The gaussianShape()
function computes a personnalisable Gaussian function.
Default values are the same as in stats::dnorm()
.
gaussianShape(x, optx = 0, opty = 1/sqrt(2 * pi), width = 1, pow = 2)
x |
a numeric vector. |
optx |
x-values at which the maximum is reached. |
opty |
extremum value. |
width |
width of the bell. |
pow |
a real number. |
A vector containing values standing for categories into which elements of x have fallen.
stats::dnorm()
gaussianShape(0) plot(gaussianShape(1:1000, 500, 2, 250, pow=5), type='l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.