pub struct Voigt;Expand description
Pseudo-Voigt kernel: A * (fraction * L̃ + (1 - fraction) * G̃)
where G̃ and L̃ are unit-amplitude Gaussian and Lorentzian shapes:
G̃ = exp(-(x₀-c)² / (2σ²))L̃ = 1 / (1 + ((x₀-c)/σ)²)
Parameters (in order): [amplitude, center, sigma, fraction]
fraction = 0.0→ pure Gaussianfraction = 1.0→ pure Lorentzian
Trait Implementations§
Source§impl Model for Voigt
impl Model for Voigt
Source§fn jacobian(&self, x: &[f64], params: &[f64]) -> Vec<f64>
fn jacobian(&self, x: &[f64], params: &[f64]) -> Vec<f64>
Jacobian — one derivative per parameter, in the same order as
param_names(). Read moreSource§fn jacobian_into(&self, x: &[f64], params: &[f64], out: &mut [f64])
fn jacobian_into(&self, x: &[f64], params: &[f64], out: &mut [f64])
Fill a pre-allocated slice with Jacobian values (one entry per parameter). Read more
Source§fn eval_slice_into(&self, xs: &[f64], params: &[f64], out: &mut [f64])
fn eval_slice_into(&self, xs: &[f64], params: &[f64], out: &mut [f64])
Batch evaluation of a 1-D model: fill
out[i] = eval([xs[i]], params). Read moreAuto Trait Implementations§
impl Freeze for Voigt
impl RefUnwindSafe for Voigt
impl Send for Voigt
impl Sync for Voigt
impl Unpin for Voigt
impl UnsafeUnpin for Voigt
impl UnwindSafe for Voigt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more