pub struct Fano;Expand description
Fano resonance lineshape used in XPS asymmetric peaks.
Formula: A · (q + ε)² / (1 + ε²), ε = (x − x₀) / Γ
Parameters (in order): [amplitude, center, gamma, q]
amplitude— overall scale factorAcenter— resonance centrex₀gamma— half-width at half-maximumΓ(> 0)q— Fano asymmetry parameter (dimensionless)
Jacobians are fully analytical.
Trait Implementations§
Source§impl Model for Fano
impl Model for Fano
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 Fano
impl RefUnwindSafe for Fano
impl Send for Fano
impl Sync for Fano
impl Unpin for Fano
impl UnsafeUnpin for Fano
impl UnwindSafe for Fano
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