Skip to contents

Creates a Lorentzian (Cauchy) peak model with three parameters: height, center, and gamma (half-width at half-maximum).

Usage

lorentzian_peak_model()

Value

A lorentzian_peak_model object.

Details

The Lorentzian function has heavier tails than Gaussian and is commonly used in spectroscopy.

Examples

model <- lorentzian_peak_model()
x <- seq(0, 10, by = 0.1)
params <- list(height = 1, center = 5, gamma = 0.5)
y <- peak_model_value(model, x, params)
plot(x, y, type = "l")