pub struct Spread {
pub share: Value,
pub kernel: Vec<(f64, f64)>,
pub grid: [usize; 2],
pub cells: Vec<Vec<[usize; 2]>>,
}Expand description
A share h of the counts arriving in each cell of a detector grid that
the detector records elsewhere, spread by the radial kernel
Σ_c w_c·exp(−r/s_c)/(2π s_c²)
(transfer): region r
records (1 − h)·μ_r + h·Σ_q F_rq·μ_q of the counts μ arriving in the
regions in each bin of both runs, F_rq the share of the spread counts
arriving evenly over region q’s cells that lands in region r’s cells
(region_shares). Cells in no region neither send nor record counts.
Fields§
h, within 0–1.
kernel: Vec<(f64, f64)>(w_c, s_c): each term’s weight, finite and positive, normalized by
their sum, and length in cells, finite and positive.
grid: [usize; 2]The grid’s rows and columns, at most 2^20 cells in all.
cells: Vec<Vec<[usize; 2]>>Each region’s cells as [row, column], in the order of
Measurement::regions; a cell is in one region at most.
Trait Implementations§
impl StructuralPartialEq for Spread
Auto Trait Implementations§
impl Freeze for Spread
impl RefUnwindSafe for Spread
impl Send for Spread
impl Sync for Spread
impl Unpin for Spread
impl UnsafeUnpin for Spread
impl UnwindSafe for Spread
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