Expand description
spectrafit-models — analytical model kernels with exact Jacobians.
Modules§
- asym_ir
- Asymmetric IR band (Gaussian × logistic sigmoid).
- breit_
wigner - Breit-Wigner-Fano resonance.
- cauchy_
dispersion - Cauchy refractive-index dispersion (
a + b/x² + c/x⁴). - doniach
- Doniach–Šunjić asymmetric core-level lineshape (XPS).
- emg
- Exponentially-modified Gaussian (asymmetric tailing peak).
- exp_
over_ linear - Exponential over a line (NIST StRD Chwirut1, Chwirut2):
exp(−rate·x) / (den_const + den_lin·x). - exponential
- Exponential decay and double-exponential models.
- fano
- Fano resonance lineshape model.
- gaussian
- Gaussian peak model with exact Jacobian.
- gaussian2d
- Axis-aligned 2-D Gaussian peak model (n_dims == 2). 2-D Gaussian kernel scaffold.
- gaussian_
nd - Axis-aligned N-D Gaussian peak model (parametric dimensionality). N-dimensional axis-aligned Gaussian kernel.
- generalised_
logistic - Generalised logistic / Richards curve (NIST StRD Rat42, Rat43):
amplitude / (1 + exp(shift − rate·x))^(1/shape). - harmonic_
ir - Driven damped harmonic-oscillator IR absorption.
- kww
- Kohlrausch–Williams–Watts stretched exponential (
A·exp(−(x/τ)^β)). - log_
normal - Log-normal peak (
A·exp(−(ln(x/c))²/(2σ²))for x > 0). - lorentzian
- Lorentzian (Cauchy) peak model with exact Jacobian.
- mgh09_
rational - Kowalik–Osborne rational function (NIST StRD MGH09):
amplitude · (x² + num_lin·x) / (x² + den_lin·x + den_const). - moffat
- Moffat peak (
A / (((x−c)/σ)²+1)^β). - pearson7
- Pearson VII peak (
A / [1 + ((x−c)/σ)²·(2^{1/m}−1)]^m). - polynomial
- Constant and linear polynomial baseline models.
- power_
law_ offset - Power-law with offset:
amplitude · (offset + x)^(−1/shape)(Bennett5 model). - power_
saturation - Power-law saturation:
amplitude · (1 − (1 + rate·x/2)^(−2))(Misra1b model). - pseudo_
voigt - Pseudo-Voigt (Gaussian/Lorentzian mixture) model.
- rational_
cubic - Rational cubic over cubic, denominator constant pinned at 1 (NIST StRD
Kirby2, Hahn1, Thurber):
(a0+a1x+a2x²+a3x³) / (1+b1x+b2x²+b3x³). - saturating_
exponential - Saturating exponential:
amplitude · (1 − exp(−rate · x))(BoxBOD model). - skewed_
gaussian - Skewed Gaussian (error-function-modulated asymmetry).
- split_
gaussian - Split (asymmetric) Gaussian — different width each side (a.k.a. bi-Gaussian).
- split_
pearson7 - Split Pearson VII (split width + exponent each side).
- step
- Step-function models: arctan, tanh, and erfc variants.
- students_
t - Student’s-t peak (
A / (1+((x−c)/σ)²/ν)^((ν+1)/2)). - tauc
- Tauc optical band-gap edge (
A·((x−e_gap)·H(x−e_gap))^p). - voigt
- Pseudo-Voigt linear-mixture model (the
voigt/pseudo_voigtkey). - voigt_
true - True Voigt profile via the Faddeeva function (Gaussian ⊗ Lorentzian).
Traits§
- Model
- Core model trait implemented by every built-in kernel.
Functions§
- all_
model_ types - Canonical list of every model-type string
model_from_strcan construct. - model_
from_ str - Dispatch a model type string to a boxed
Modelimplementation. - model_
from_ str_ with_ dims - Dimension-aware model construction.