pub struct ScoringConfig {
pub isotope_offset_enabled: bool,
pub offset_zero_bonus: f64,
pub min_isotope_score_for_offset: f64,
}Fields§
§isotope_offset_enabled: boolWhether to test the ±1 neutron-offset monoisotope reassignment during
scoring. false (default) tests only offset 0 (no reassignment);
true searches offsets [-1, +1] inclusive.
offset_zero_bonus: f64Bonus added to the Bhattacharyya score when offset == 0, to prefer the no-reassignment hypothesis when scores are close. Internal only — never stored on the feature.
min_isotope_score_for_offset: f64Features whose best isotope_score (Bhattacharyya) is below this
keep neutron_offset = 0 (no monoisotopic reassignment). Does not
affect retention — use FeaturesConfig.min_isotope_score /
min_cosine_score / min_combined_score for that.
Trait Implementations§
Source§impl Clone for ScoringConfig
impl Clone for ScoringConfig
Source§impl Debug for ScoringConfig
impl Debug for ScoringConfig
Source§impl Default for ScoringConfig
impl Default for ScoringConfig
Source§impl<'de> Deserialize<'de> for ScoringConfigwhere
ScoringConfig: Default,
impl<'de> Deserialize<'de> for ScoringConfigwhere
ScoringConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScoringConfig
impl RefUnwindSafe for ScoringConfig
impl Send for ScoringConfig
impl Sync for ScoringConfig
impl Unpin for ScoringConfig
impl UnsafeUnpin for ScoringConfig
impl UnwindSafe for ScoringConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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