Skip to main content

Crate lineshapes

Crate lineshapes 

Source
Expand description

Fast composable optical-constant models: analytic KK-paired lineshape peaks (Gaussian, Lorentzian, Voigt, pseudo-Voigt) plus a continuum in beta and a fixed continuum delta table. See Model.

Re-exports§

pub use model::Component;
pub use model::Model;

Modules§

model
Composable optical-constant model: analytic KK-paired peaks + continuum.

Structs§

Evaluator
A Model bound to a fixed energy grid; see the module docs.

Functions§

fast_dawson
Dawson’s function: asymptotic series for |x| >= 10, Faddeeva-package table otherwise.
fast_erf
erf, short-circuited where it is exactly +-1 in double precision (|x| > 6).
fast_w
Faddeeva w(z) for Im z >= 0: asymptotic series i/(sqrt(pi) z) sum_n c_n / z^(2n) for |z| >= 10 (truncation < 1e-16 relative; the dropped exp(-z^2) term is < 1e-43 there), Faddeeva-package algorithm otherwise.

Type Aliases§

Complex64
Alias for a Complex<f64>