powered by
Calculates the value of the Lorentzian function at the given wavelengths, given the parameters of the peaks. This function is thread-safe.
weightedLorentzian(location, scale, amplitude, wavelengths)
Vector of location parameters of the peaks.
Vector of scale parameters of the peaks.
Vector of amplitudes of the peaks.
Vector of wavenumbers at which to compute the function.
The value of the Lorentian function at the given wavelengths.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab