pub struct TwoArmBackgroundTemplate {
pub name: String,
pub open_beam: Vec<f64>,
pub sample: Vec<f64>,
}Expand description
One independently supplied detector-bin background shape.
A single non-negative amplitude multiplies both arms. For a component that exists in only one acquisition, supply zeros for the other arm. Arrays are counts per unit amplitude, already normalized to the corresponding run.
Fields§
§name: StringStable component name retained in fit output.
open_beam: Vec<f64>Open-beam background counts per unit amplitude.
sample: Vec<f64>Sample background counts per unit amplitude.
Trait Implementations§
Source§impl Clone for TwoArmBackgroundTemplate
impl Clone for TwoArmBackgroundTemplate
Source§fn clone(&self) -> TwoArmBackgroundTemplate
fn clone(&self) -> TwoArmBackgroundTemplate
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 TwoArmBackgroundTemplate
impl Debug for TwoArmBackgroundTemplate
Source§impl PartialEq for TwoArmBackgroundTemplate
impl PartialEq for TwoArmBackgroundTemplate
impl StructuralPartialEq for TwoArmBackgroundTemplate
Auto Trait Implementations§
impl Freeze for TwoArmBackgroundTemplate
impl RefUnwindSafe for TwoArmBackgroundTemplate
impl Send for TwoArmBackgroundTemplate
impl Sync for TwoArmBackgroundTemplate
impl Unpin for TwoArmBackgroundTemplate
impl UnsafeUnpin for TwoArmBackgroundTemplate
impl UnwindSafe for TwoArmBackgroundTemplate
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