pub struct FeatureSetFit {Show 13 fields
pub features: Vec<Option<usize>>,
pub start: MapCoordinate,
pub end: MapCoordinate,
pub score: ScoreType,
pub theoretical: TheoreticalIsotopicPattern,
pub mz: f64,
pub neutral_mass: f64,
pub charge: i32,
pub missing_features: usize,
pub n_points: usize,
pub monoisotopic_index: usize,
pub scores: Vec<ScoreType>,
pub times: Vec<f64>,
}Fields§
§features: Vec<Option<usize>>§start: MapCoordinate§end: MapCoordinate§score: ScoreType§theoretical: TheoreticalIsotopicPattern§mz: f64§neutral_mass: f64§charge: i32§missing_features: usize§n_points: usize§monoisotopic_index: usize§scores: Vec<ScoreType>§times: Vec<f64>Implementations§
Source§impl FeatureSetFit
impl FeatureSetFit
pub fn new( features: Vec<Option<usize>>, theoretical: TheoreticalIsotopicPattern, start: MapCoordinate, end: MapCoordinate, score: ScoreType, charge: i32, missing_features: usize, neutral_mass: f64, n_points: usize, scores: Vec<ScoreType>, times: Vec<f64>, ) -> Self
pub fn count_null_features(&self) -> usize
pub fn has_multiple_real_features(&self) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn find_bounds<Y: Clone>( &self, feature_map: &IndexedFeatureMap<Y>, detection_threshold: f32, ) -> CoordinateRange<Y>
pub fn find_separation<Y: Clone>( &self, feature_map: &IndexedFeatureMap<Y>, detection_threshold: f32, ) -> (CoordinateRange<Y>, Vec<ScoreSegment>)
Trait Implementations§
Source§impl Clone for FeatureSetFit
impl Clone for FeatureSetFit
Source§fn clone(&self) -> FeatureSetFit
fn clone(&self) -> FeatureSetFit
Returns a duplicate of the value. Read more
1.0.0 · 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 FeatureSetFit
impl Debug for FeatureSetFit
Source§impl Ord for FeatureSetFit
impl Ord for FeatureSetFit
Source§impl PartialEq for FeatureSetFit
impl PartialEq for FeatureSetFit
Source§impl PartialOrd for FeatureSetFit
impl PartialOrd for FeatureSetFit
impl Eq for FeatureSetFit
Auto Trait Implementations§
impl Freeze for FeatureSetFit
impl RefUnwindSafe for FeatureSetFit
impl Send for FeatureSetFit
impl Sync for FeatureSetFit
impl Unpin for FeatureSetFit
impl UnwindSafe for FeatureSetFit
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.