pub struct ScoreOpts {Show 13 fields
pub w_jacc_rt: f32,
pub w_shape: f32,
pub w_rt_apex: f32,
pub w_im_apex: f32,
pub w_im_overlap: f32,
pub w_ms1_intensity: f32,
pub rt_apex_scale_s: f32,
pub im_apex_scale_scans: f32,
pub shape_neutral: f32,
pub min_sigma_rt: f32,
pub min_sigma_im: f32,
pub w_shape_rt_inner: f32,
pub w_shape_im_inner: f32,
}Expand description
Scoring knobs. Defaults are conservative and width-aware but won’t punish
pairs that lack good fits (we use shape_neutral when shape data is missing).
Fields§
§w_jacc_rt: f32Weight for RT Jaccard.
w_shape: f32Weight for shape similarity S_shape.
w_rt_apex: f32Weight for RT apex proximity term (smaller delta = better).
w_im_apex: f32Weight for IM apex proximity term (smaller delta = better).
w_im_overlap: f32Weight for IM overlap ratio.
w_ms1_intensity: f32Weight for MS1 raw_sum (log-compressed).
rt_apex_scale_s: f32Scales to normalize apex deltas into ~0..1 decays (exp(-delta/scale)).
im_apex_scale_scans: f32§shape_neutral: f32If shape is unavailable, use this neutral value instead of 0.
min_sigma_rt: f32Floors for σ to avoid division by ~0.
min_sigma_im: f32§w_shape_rt_inner: f32Shape component internal weights (multiply z^2 inside exp).
w_shape_im_inner: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScoreOpts
impl RefUnwindSafe for ScoreOpts
impl Send for ScoreOpts
impl Sync for ScoreOpts
impl Unpin for ScoreOpts
impl UnwindSafe for ScoreOpts
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.