pub struct ArmCountPrediction {
pub neutron_signal: Vec<f64>,
pub background: Vec<f64>,
pub total: Vec<f64>,
pub window_loss: f64,
}Expand description
Signal, additive background, and total expected counts for one measured arm.
Background is expressed directly in the detector bins of that measurement and is added after source attenuation and instrument response. It is not the SAMMY additive transmission curve, and it is not convolved a second time by the instrument response.
Fields§
§neutron_signal: Vec<f64>Neutron counts produced by source, sample, and instrument response.
background: Vec<f64>Independently supplied additive expected counts in the measured bins.
total: Vec<f64>Complete expectation, neutron_signal + background.
window_loss: f64Expected neutron counts lost outside the acquisition window, carried
through from TwoArmCounts.
The pipeline-map contract (R5·7) requires the acquisition-window loss to stay disclosed rather than renormalized away. Forming a total expectation is exactly where that report would otherwise be dropped, so it travels with the arm it belongs to. Only the neutron signal can leave the window: a background template is supplied already binned into the acquisition, so it contributes no additional loss.
Trait Implementations§
Source§impl Clone for ArmCountPrediction
impl Clone for ArmCountPrediction
Source§fn clone(&self) -> ArmCountPrediction
fn clone(&self) -> ArmCountPrediction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArmCountPrediction
impl Debug for ArmCountPrediction
Source§impl PartialEq for ArmCountPrediction
impl PartialEq for ArmCountPrediction
impl StructuralPartialEq for ArmCountPrediction
Auto Trait Implementations§
impl Freeze for ArmCountPrediction
impl RefUnwindSafe for ArmCountPrediction
impl Send for ArmCountPrediction
impl Sync for ArmCountPrediction
impl Unpin for ArmCountPrediction
impl UnsafeUnpin for ArmCountPrediction
impl UnwindSafe for ArmCountPrediction
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
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>
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