pub struct WindowTransmission {
pub center_mz: f64,
pub width_mz: f64,
pub k: f64,
}Expand description
Vendor-neutral precursor transmission for ONE isolation window (P6b).
The quadrupole m/z transfer is the SAME apply_transmission curve the
scan-indexed Bruker path uses internally — the only vendor difference is HOW
the active window is found: Bruker locates it by (frame_id, scan_id) (the
mobility-partitioned PASEF window), while a no-IMS instrument (Orbitrap
Astral) locates it by acquisition event / cycle position + m/z (there is no
scan axis). This type decouples the m/z transfer from that lookup, so the
fragment render can ask “is this precursor transmitted?” without knowing how
the window was selected. It is purely additive — the existing
IonTransmission (TimsTransmissionDIA/DDA) path is unchanged.
Fields§
§center_mz: f64§width_mz: f64§k: f64Sigmoid steepness of the quadrupole edge (same k as the Bruker path).
Implementations§
Source§impl WindowTransmission
impl WindowTransmission
pub fn new(center_mz: f64, width_mz: f64, k: f64) -> Self
Sourcepub fn probabilities(&self, mz: &[f64]) -> Vec<f64>
pub fn probabilities(&self, mz: &[f64]) -> Vec<f64>
Per-m/z transmission probabilities through this window — identical to the curve the scan-indexed path applies once it has found the window.
Trait Implementations§
Source§impl Clone for WindowTransmission
impl Clone for WindowTransmission
Source§fn clone(&self) -> WindowTransmission
fn clone(&self) -> WindowTransmission
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WindowTransmission
impl Debug for WindowTransmission
impl Copy for WindowTransmission
Auto Trait Implementations§
impl Freeze for WindowTransmission
impl RefUnwindSafe for WindowTransmission
impl Send for WindowTransmission
impl Sync for WindowTransmission
impl Unpin for WindowTransmission
impl UnsafeUnpin for WindowTransmission
impl UnwindSafe for WindowTransmission
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,
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§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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.