pub struct SpectralAcquisitionPlan { /* private fields */ }Expand description
Canonical sparse global acquisition plan for separate or multiplexed exposures.
Rows are in physical acquisition order. Duplicate (channel, local_frame)
pairs are summed, zero weights removed, and pairs sorted. Every row must
retain a positive contribution. References are checked during compilation.
Implementations§
Source§impl SpectralAcquisitionPlan
impl SpectralAcquisitionPlan
Sourcepub fn separate(frame_counts: &[usize]) -> Result<Self>
pub fn separate(frame_counts: &[usize]) -> Result<Self>
Creates channel-major separate exposures with unit weights/gains and zero background.
frame_counts must contain a positive local-frame count for every channel.
Sourcepub fn multiplexed(frames: Vec<SpectralFrame>) -> Result<Self>
pub fn multiplexed(frames: Vec<SpectralFrame>) -> Result<Self>
Canonicalizes explicitly supplied sparse exposures, preserving global row order. Non-finite or negative weights/background and non-positive gains are rejected.
Sourcepub fn frames(&self) -> &[SpectralFrame]
pub fn frames(&self) -> &[SpectralFrame]
Borrows canonical detector rows in acquisition order.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Returns the number of physical detector exposures.
Trait Implementations§
Source§impl Clone for SpectralAcquisitionPlan
impl Clone for SpectralAcquisitionPlan
Source§fn clone(&self) -> SpectralAcquisitionPlan
fn clone(&self) -> SpectralAcquisitionPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpectralAcquisitionPlan
impl Debug for SpectralAcquisitionPlan
Source§impl<'de> Deserialize<'de> for SpectralAcquisitionPlan
impl<'de> Deserialize<'de> for SpectralAcquisitionPlan
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpectralAcquisitionPlan
impl PartialEq for SpectralAcquisitionPlan
Source§fn eq(&self, other: &SpectralAcquisitionPlan) -> bool
fn eq(&self, other: &SpectralAcquisitionPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpectralAcquisitionPlan
impl Serialize for SpectralAcquisitionPlan
impl StructuralPartialEq for SpectralAcquisitionPlan
Auto Trait Implementations§
impl Freeze for SpectralAcquisitionPlan
impl RefUnwindSafe for SpectralAcquisitionPlan
impl Send for SpectralAcquisitionPlan
impl Sync for SpectralAcquisitionPlan
impl Unpin for SpectralAcquisitionPlan
impl UnsafeUnpin for SpectralAcquisitionPlan
impl UnwindSafe for SpectralAcquisitionPlan
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