pub struct MerminFit {Show 15 fields
pub oscillators: Vec<DrudeLorentzOscillator>,
pub energy_ev: Vec<f64>,
pub data: Vec<f64>,
pub model: Vec<f64>,
pub residuals: Vec<f64>,
pub weighting: FitWeighting,
pub weighted_rms: f64,
pub rms_residual: f64,
pub max_abs_residual: f64,
pub iterations: usize,
pub converged: bool,
pub f_sum_ev2: f64,
pub p_eff: f64,
pub data_f_sum_ev2: f64,
pub data_p_eff: f64,
}Expand description
The result of a fit: parameters, residuals and the sum rules. See the module docs.
Fields§
§oscillators: Vec<DrudeLorentzOscillator>The fitted oscillators (strength_ev2 is the amplitude A_j, eV²,
>= 0; energy_ev is ħω_j; width_ev is ħγ_j), sorted by energy.
energy_ev: Vec<f64>The tabulated energies, eV.
data: Vec<f64>The tabulated ELF values.
model: Vec<f64>The fitted ELF at the tabulated energies.
residuals: Vec<f64>model - data at the tabulated energies.
weighting: FitWeightingThe weighting that was minimised.
weighted_rms: f64Root-mean-square of the weighted residuals (the minimised quantity).
rms_residual: f64Root-mean-square of model - data.
max_abs_residual: f64Largest |model - data|.
iterations: usizeLevenberg-Marquardt iterations used.
converged: boolWhether a convergence criterion was met before max_iterations.
f_sum_ev2: f64(π/2) Σ A_j, eV²: the f-sum ∫ E ELF dE of the fit over (0, ∞).
p_eff: f64Σ A_j/(ħω_j)²: P_eff of the fit over (0, ∞) (no n(0)⁻² term).
data_f_sum_ev2: f64∫ E ELF dE of the data over its tabulated range, eV².
data_p_eff: f64P_eff of the data over its tabulated range.
Implementations§
Trait Implementations§
impl StructuralPartialEq for MerminFit
Auto Trait Implementations§
impl Freeze for MerminFit
impl RefUnwindSafe for MerminFit
impl Send for MerminFit
impl Sync for MerminFit
impl Unpin for MerminFit
impl UnsafeUnpin for MerminFit
impl UnwindSafe for MerminFit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more