Description Usage Arguments Value Examples
This function defines the pseudo voigt curve.
1 | pseudoVoigt(x, height, centre, hwhm, shape)
|
x |
A vector of x coordinates |
height |
The height parameter |
centre |
The centre parameter |
hwhm |
The hwhm parameter |
shape |
The shape parameter (0–1) |
The value(s) of the pseudo voigt function evaluated with the specified parameters
1 2 3 4 5 6 7 | pseudoVoigt(10, 10, 0, 2, 0.5)
pseudoVoigt(c(1:10), 10, 0, 2, 0.5)
f <- function(x) {
pseudoVoigt(x, height=10, centre=0, hwhm=2, shape=0.5)
}
curve(f, from=-5, to=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.