pseudoVoigt: Pseudo Voigt curve

Description Usage Arguments Value Examples

View source: R/FIT-curves.R

Description

This function defines the pseudo voigt curve.

Usage

1
pseudoVoigt(x, height, centre, hwhm, shape)

Arguments

x

A vector of x coordinates

height

The height parameter

centre

The centre parameter

hwhm

The hwhm parameter

shape

The shape parameter (0–1)

Value

The value(s) of the pseudo voigt function evaluated with the specified parameters

Examples

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)

jmstrat/NMR.Utils documentation built on July 14, 2019, 11:35 p.m.