pub struct TofRtGrid {
pub rt_range_frames: (usize, usize),
pub rt_range_sec: (f32, f32),
pub frame_id_bounds: (u32, u32),
pub window_group: Option<u32>,
pub scale: Arc<TofScale>,
pub rt_times: Vec<f32>,
pub frame_ids: Vec<u32>,
pub rows: usize,
pub cols: usize,
pub data: Vec<f32>,
}Fields§
§rt_range_frames: (usize, usize)[lo, hi] in local RT frame indices (0..cols-1)
rt_range_sec: (f32, f32)[lo, hi] in seconds, from rt_times
frame_id_bounds: (u32, u32)[lo, hi] in absolute frame_ids
window_group: Option<u32>Optional DIA window group; None for precursor grid
scale: Arc<TofScale>TOF axis definition (shared with RtFrames)
rt_times: Vec<f32>RT axis (seconds), len = cols
frame_ids: Vec<u32>Absolute frame IDs, len = cols
rows: usizerows = number of TOF bins; cols = number of frames
cols: usize§data: Vec<f32>Dense matrix, row-major: data[row * cols + col], where row = TOF bin index, col = RT frame index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TofRtGrid
impl RefUnwindSafe for TofRtGrid
impl Send for TofRtGrid
impl Sync for TofRtGrid
impl Unpin for TofRtGrid
impl UnwindSafe for TofRtGrid
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,
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.