pub struct BackgroundConfig {
pub anorm_init: f64,
pub back_a_init: f64,
pub back_b_init: f64,
pub back_c_init: f64,
pub fit_anorm: bool,
pub fit_back_a: bool,
pub fit_back_b: bool,
pub fit_back_c: bool,
}Expand description
SAMMY-style normalization and background configuration.
When enabled, the transmission model becomes: T_out(E) = Anorm × T_inner(E) + BackA + BackB / √E + BackC × √E
These 4 parameters are fitted jointly with the isotope densities.
§SAMMY Reference
SAMMY manual Sec III.E.2 — NORMAlization and BACKGround cards.
Fields§
§anorm_init: f64Initial value for the normalization factor (default 1.0).
back_a_init: f64Initial value for the constant background (default 0.0).
back_b_init: f64Initial value for the 1/√E background term (default 0.0).
back_c_init: f64Initial value for the √E background term (default 0.0).
fit_anorm: boolWhether Anorm is free (true) or fixed (false).
fit_back_a: boolWhether BackA is free (true) or fixed (false).
fit_back_b: boolWhether BackB is free (true) or fixed (false).
fit_back_c: boolWhether BackC is free (true) or fixed (false).
Trait Implementations§
Source§impl Clone for BackgroundConfig
impl Clone for BackgroundConfig
Source§fn clone(&self) -> BackgroundConfig
fn clone(&self) -> BackgroundConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackgroundConfig
impl Debug for BackgroundConfig
Auto Trait Implementations§
impl Freeze for BackgroundConfig
impl RefUnwindSafe for BackgroundConfig
impl Send for BackgroundConfig
impl Sync for BackgroundConfig
impl Unpin for BackgroundConfig
impl UnwindSafe for BackgroundConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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