weightedLorentzian: Compute the spectral signature using Lorentzian peaks.

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Calculates the value of the Lorentzian function at the given wavelengths, given the parameters of the peaks. This function is thread-safe.

Usage

1
weightedLorentzian(location, scale, amplitude, wavelengths)

Arguments

location

Vector of location parameters of the peaks.

scale

Vector of scale parameters of the peaks.

amplitude

Vector of amplitudes of the peaks.

wavelengths

Vector of wavenumbers at which to compute the function.

Value

The value of the Lorentian function at the given wavelengths.

Examples

1
2
3
4
5
  Cal_V <- seq(300,400,by=5)
  loc <- c(320,350,375)
  sca <- c(10,5,18)
  amp <- c(1000,5000,2000)
  weightedLorentzian(loc,sca,amp,Cal_V)

serrsBayes documentation built on June 28, 2021, 5:14 p.m.