pub struct Channel<'a> { /* private fields */ }Expand description
One Combine channel/bin for a single process plus observed data.
Implementations§
Source§impl<'a> Channel<'a>
impl<'a> Channel<'a>
Sourcepub fn new(
name: impl Into<String>,
nominal: &'a Hist1D,
data_obs: &'a Hist1D,
) -> Self
pub fn new( name: impl Into<String>, nominal: &'a Hist1D, data_obs: &'a Hist1D, ) -> Self
Create a channel from the nominal process shape and observed data shape.
Sourcepub fn with_shape_systematic(
self,
name: impl Into<String>,
up: &'a Hist1D,
down: &'a Hist1D,
) -> Self
pub fn with_shape_systematic( self, name: impl Into<String>, up: &'a Hist1D, down: &'a Hist1D, ) -> Self
Attach one shape/JES-style systematic with per-bin up/down histograms.
pub fn name(&self) -> &str
pub fn nominal(&self) -> &Hist1D
pub fn data_obs(&self) -> &Hist1D
pub fn shape_variations(&self) -> &BTreeMap<String, ShapeVariation<'a>>
Trait Implementations§
impl<'a> StructuralPartialEq for Channel<'a>
Auto Trait Implementations§
impl<'a> Freeze for Channel<'a>
impl<'a> RefUnwindSafe for Channel<'a>
impl<'a> Send for Channel<'a>
impl<'a> Sync for Channel<'a>
impl<'a> Unpin for Channel<'a>
impl<'a> UnsafeUnpin for Channel<'a>
impl<'a> UnwindSafe for Channel<'a>
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