pub struct DeconvolvedSolutionFeature<Y: Clone> {
pub score: ScoreType,
pub scores: Vec<ScoreType>,
/* private fields */
}Fields§
§score: ScoreType§scores: Vec<ScoreType>Implementations§
Source§impl<Y: Clone> DeconvolvedSolutionFeature<Y>
impl<Y: Clone> DeconvolvedSolutionFeature<Y>
pub fn new( inner: ChargedFeature<Mass, Y>, score: ScoreType, scores: Vec<ScoreType>, envelope: Box<[MZPointSeries]>, ) -> Self
pub fn as_inner(&self) -> &ChargedFeature<Mass, Y>
pub fn into_inner( self, ) -> (ChargedFeature<Mass, Y>, Vec<ScoreType>, Box<[MZPointSeries]>)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, Mass, Y>
pub fn iter_mut(&mut self) -> IterMut<'_, Mass, Y>
pub fn iter_peaks(&self) -> PeakIter<'_, Y> ⓘ
pub fn iter_envelope(&self) -> EnvelopeIter<'_, Y> ⓘ
pub fn push<T: CoordinateLike<Mass> + IntensityMeasurement>( &mut self, pt: &T, time: f64, )
pub fn push_peak(&mut self, peak: &DeconvolvedSolutionPeak, time: f64)
pub fn envelope(&self) -> Vec<FeatureView<'_, MZ, Y>>
Trait Implementations§
Source§impl<Y0: Clone> AsMut<ChargedFeature<Mass, Y0>> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> AsMut<ChargedFeature<Mass, Y0>> for DeconvolvedSolutionFeature<Y0>
Source§fn as_mut(&mut self) -> &mut ChargedFeature<Mass, Y0>
fn as_mut(&mut self) -> &mut ChargedFeature<Mass, Y0>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<Y: Clone> AsPeakIter for DeconvolvedSolutionFeature<Y>
impl<Y: Clone> AsPeakIter for DeconvolvedSolutionFeature<Y>
Source§impl<Y0: Clone> AsRef<ChargedFeature<Mass, Y0>> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> AsRef<ChargedFeature<Mass, Y0>> for DeconvolvedSolutionFeature<Y0>
Source§fn as_ref(&self) -> &ChargedFeature<Mass, Y0>
fn as_ref(&self) -> &ChargedFeature<Mass, Y0>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl BuildArrayMap3DFrom for DeconvolvedSolutionFeature<IonMobility>
impl BuildArrayMap3DFrom for DeconvolvedSolutionFeature<IonMobility>
fn as_arrays_3d(source: &[Self]) -> BinaryArrayMap3D
Source§impl BuildArrayMapFrom for DeconvolvedSolutionFeature<IonMobility>
impl BuildArrayMapFrom for DeconvolvedSolutionFeature<IonMobility>
fn arrays_included(&self) -> Option<Vec<ArrayType>>
fn as_arrays(source: &[Self]) -> BinaryArrayMap
Source§impl BuildFromArrayMap for DeconvolvedSolutionFeature<IonMobility>
impl BuildFromArrayMap for DeconvolvedSolutionFeature<IonMobility>
fn arrays_required() -> Option<Vec<ArrayType>>
fn try_from_arrays( arrays: &BinaryArrayMap, ) -> Result<Vec<Self>, ArrayRetrievalError>
fn from_arrays(arrays: &BinaryArrayMap) -> Vec<Self>
Source§fn has_arrays_for(arrays: &BinaryArrayMap) -> ArraysAvailable
fn has_arrays_for(arrays: &BinaryArrayMap) -> ArraysAvailable
A pre-emptive check for the presence of the required arrays.
Source§impl BuildFromArrayMap3D for DeconvolvedSolutionFeature<IonMobility>
impl BuildFromArrayMap3D for DeconvolvedSolutionFeature<IonMobility>
fn try_from_arrays_3d( arrays: &BinaryArrayMap3D, ) -> Result<Vec<Self>, ArrayRetrievalError>
fn from_arrays_3d(arrays: &BinaryArrayMap3D) -> Vec<Self>
fn has_arrays_3d_for(arrays: &BinaryArrayMap3D) -> ArraysAvailable
Source§impl<Y: Clone> BuildFromPeak<DeconvolvedSolutionPeak> for DeconvolvedSolutionFeature<Y>
impl<Y: Clone> BuildFromPeak<DeconvolvedSolutionPeak> for DeconvolvedSolutionFeature<Y>
Source§fn push_peak(&mut self, value: &DeconvolvedSolutionPeak, time: f64)
fn push_peak(&mut self, value: &DeconvolvedSolutionPeak, time: f64)
Like
FeatureLikeMut::push but permitting specialized behaviorSource§fn extend_from_peaks<I>(&mut self, iter: I)where
I: IntoIterator<Item = (T, f64)>,
fn extend_from_peaks<I>(&mut self, iter: I)where
I: IntoIterator<Item = (T, f64)>,
Like
Extend but uses BuildFromPeak::push_peakSource§impl<Y: Clone + Clone> Clone for DeconvolvedSolutionFeature<Y>
impl<Y: Clone + Clone> Clone for DeconvolvedSolutionFeature<Y>
Source§fn clone(&self) -> DeconvolvedSolutionFeature<Y>
fn clone(&self) -> DeconvolvedSolutionFeature<Y>
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<Y0: Clone> CoordinateLike<MZ> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> CoordinateLike<MZ> for DeconvolvedSolutionFeature<Y0>
Source§fn coordinate(&self) -> f64
fn coordinate(&self) -> f64
The trait method for accessing the coordinate of the object on coordinate
system
TSource§impl<Y0: Clone> CoordinateLike<Mass> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> CoordinateLike<Mass> for DeconvolvedSolutionFeature<Y0>
Source§fn coordinate(&self) -> f64
fn coordinate(&self) -> f64
The trait method for accessing the coordinate of the object on coordinate
system
TSource§impl<Y: Clone> Default for DeconvolvedSolutionFeature<Y>
impl<Y: Clone> Default for DeconvolvedSolutionFeature<Y>
Source§impl<'de, Y> Deserialize<'de> for DeconvolvedSolutionFeature<Y>where
Y: Deserialize<'de> + Clone,
impl<'de, Y> Deserialize<'de> for DeconvolvedSolutionFeature<Y>where
Y: Deserialize<'de> + Clone,
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
Source§impl<Y0: Clone> FeatureLike<Mass, Y0> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> FeatureLike<Mass, Y0> for DeconvolvedSolutionFeature<Y0>
Source§fn iter(&self) -> impl Iterator<Item = (f64, f64, f32)>
fn iter(&self) -> impl Iterator<Item = (f64, f64, f32)>
Create an iterator that yields (x, y, intensity) references
Source§fn at(&self, index: usize) -> Option<(f64, f64, f32)>
fn at(&self, index: usize) -> Option<(f64, f64, f32)>
Get an immutable reference to feature data at a specified index
Source§fn at_time(&self, time: f64) -> Option<(f64, f64, f32)>
fn at_time(&self, time: f64) -> Option<(f64, f64, f32)>
Get an immutable reference to feature data at a specified time.Analogous
to combining
TimeInterval::find_time with FeatureLike::atSource§impl<Y0: Clone> FeatureLikeMut<Mass, Y0> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> FeatureLikeMut<Mass, Y0> for DeconvolvedSolutionFeature<Y0>
Source§fn iter_mut(&mut self) -> impl Iterator<Item = (&mut f64, &mut f64, &mut f32)>
fn iter_mut(&mut self) -> impl Iterator<Item = (&mut f64, &mut f64, &mut f32)>
Create an iterator that yields (x, y, intensity) mutable references Read more
Source§fn push<T: CoordinateLike<Mass> + IntensityMeasurement>(
&mut self,
pt: &T,
time: f64,
)
fn push<T: CoordinateLike<Mass> + IntensityMeasurement>( &mut self, pt: &T, time: f64, )
Add a new peak-like reference to the feature at a given y “time” coordinate. If the “time”
is not in sorted order, it should automatically re-sort.
Source§fn push_raw(&mut self, x: f64, y: f64, z: f32)
fn push_raw(&mut self, x: f64, y: f64, z: f32)
As
FeatureLikeMut::push, but instead add raw values instead of deriving them from
a peak-like reference.Source§fn reserve(&mut self, capacity: usize)
fn reserve(&mut self, capacity: usize)
Optimistically reserve additional space for
capacity entries in
the underlying storage. Read moreSource§fn at_mut(&mut self, index: usize) -> Option<(&mut f64, f64, &mut f32)>
fn at_mut(&mut self, index: usize) -> Option<(&mut f64, f64, &mut f32)>
Get a mutable reference to feature data at a specified index
Source§fn first_mut(&mut self) -> Option<(&mut f64, f64, &mut f32)>
fn first_mut(&mut self) -> Option<(&mut f64, f64, &mut f32)>
Get a mutable reference to feature data at the first index, if it exists
Source§fn last_mut(&mut self) -> Option<(&mut f64, f64, &mut f32)>
fn last_mut(&mut self) -> Option<(&mut f64, f64, &mut f32)>
Get a mutable reference to feature data at the last index, if it exists
Source§fn at_time_mut(&mut self, time: f64) -> Option<(&mut f64, f64, &mut f32)>
fn at_time_mut(&mut self, time: f64) -> Option<(&mut f64, f64, &mut f32)>
Get a mutable reference to feature data at a specified time. Analogous
to combining
TimeInterval::find_time with FeatureLikeMut::at_mutSource§impl<'a, Y: Clone + 'a> FitPeaksOn<'a> for DeconvolvedSolutionFeature<Y>
impl<'a, Y: Clone + 'a> FitPeaksOn<'a> for DeconvolvedSolutionFeature<Y>
fn as_peak_shape_args(&'a self) -> PeakFitArgs<'a, 'a>
Source§fn fit_peaks_with(
&'a self,
config: FitConfig,
) -> SplittingPeakShapeFitter<'a, 'a>
fn fit_peaks_with( &'a self, config: FitConfig, ) -> SplittingPeakShapeFitter<'a, 'a>
Fit multiple peak models on this signal.
Source§impl<'a, Y: Clone + 'a> From<&'a DeconvolvedSolutionFeature<Y>> for PeakFitArgs<'a, 'a>
impl<'a, Y: Clone + 'a> From<&'a DeconvolvedSolutionFeature<Y>> for PeakFitArgs<'a, 'a>
Source§fn from(value: &'a DeconvolvedSolutionFeature<Y>) -> Self
fn from(value: &'a DeconvolvedSolutionFeature<Y>) -> Self
Converts to this type from the input type.
Source§impl<Y0: Clone> IntensityMeasurement for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> IntensityMeasurement for DeconvolvedSolutionFeature<Y0>
Source§impl<Y0: Clone> KnownCharge for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> KnownCharge for DeconvolvedSolutionFeature<Y0>
Source§impl<Y: Clone> KnownChargeMut for DeconvolvedSolutionFeature<Y>
impl<Y: Clone> KnownChargeMut for DeconvolvedSolutionFeature<Y>
fn charge_mut(&mut self) -> &mut i32
Source§impl<Y: Clone> PartialEq for DeconvolvedSolutionFeature<Y>
impl<Y: Clone> PartialEq for DeconvolvedSolutionFeature<Y>
Source§impl<Y: Clone> PartialOrd for DeconvolvedSolutionFeature<Y>
impl<Y: Clone> PartialOrd for DeconvolvedSolutionFeature<Y>
Source§impl<Y> Serialize for DeconvolvedSolutionFeature<Y>
impl<Y> Serialize for DeconvolvedSolutionFeature<Y>
Source§impl<Y: Clone> SplittableFeatureLike<'_, Mass, Y> for DeconvolvedSolutionFeature<Y>
impl<Y: Clone> SplittableFeatureLike<'_, Mass, Y> for DeconvolvedSolutionFeature<Y>
Source§type ViewType = DeconvolvedSolutionFeature<Y>
type ViewType = DeconvolvedSolutionFeature<Y>
The type that will hold the split feature parts. They could be borrowed
or own a copy of their original data.
Source§fn split_at_time(&self, point: f64) -> (Self::ViewType, Self::ViewType)
fn split_at_time(&self, point: f64) -> (Self::ViewType, Self::ViewType)
Split the feature at
time. Read moreSource§fn split_at(&self, point: usize) -> (Self::ViewType, Self::ViewType)
fn split_at(&self, point: usize) -> (Self::ViewType, Self::ViewType)
Split the feature at
index, segmenting before and after it. The
position at index should be retained in the second segment.Source§fn slice<I: RangeBounds<usize> + Clone>(&self, bounds: I) -> Self::ViewType
fn slice<I: RangeBounds<usize> + Clone>(&self, bounds: I) -> Self::ViewType
Select the positions given by the range of positions in
boundsSource§fn split_mask(&'a self, mask: &[bool]) -> Vec<Self::ViewType>
fn split_mask(&'a self, mask: &[bool]) -> Vec<Self::ViewType>
Retain all positions where
mask is true, keeping contiguous positions
part of the same feature segments. Read moreSource§impl<Y0: Clone> TimeArray<Y0> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> TimeArray<Y0> for DeconvolvedSolutionFeature<Y0>
Source§impl<Y0: Clone> TimeInterval<Y0> for DeconvolvedSolutionFeature<Y0>
impl<Y0: Clone> TimeInterval<Y0> for DeconvolvedSolutionFeature<Y0>
Source§fn apex_time(&self) -> Option<f64>
fn apex_time(&self) -> Option<f64>
The time point where the feature reaches its greatest intensity
Source§fn start_time(&self) -> Option<f64>
fn start_time(&self) -> Option<f64>
The earliest time point recorded
Source§fn find_time(&self, time: f64) -> (Option<usize>, f64)
fn find_time(&self, time: f64) -> (Option<usize>, f64)
Find the position in the interval closest to the requested time
and the magnitude of the error
Source§fn as_range(&self) -> CoordinateRange<T>
fn as_range(&self) -> CoordinateRange<T>
Represent the
TimeInterval into a CoordinateRangeAuto Trait Implementations§
impl<Y> Freeze for DeconvolvedSolutionFeature<Y>
impl<Y> RefUnwindSafe for DeconvolvedSolutionFeature<Y>where
Y: RefUnwindSafe,
impl<Y> Send for DeconvolvedSolutionFeature<Y>where
Y: Send,
impl<Y> Sync for DeconvolvedSolutionFeature<Y>where
Y: Sync,
impl<Y> Unpin for DeconvolvedSolutionFeature<Y>where
Y: Unpin,
impl<Y> UnwindSafe for DeconvolvedSolutionFeature<Y>where
Y: UnwindSafe,
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<X, Y, T> FeatureTransform<X, Y> for T
impl<X, Y, T> FeatureTransform<X, Y> for T
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> MassLocated for Twhere
T: CoordinateLike<Mass>,
impl<T> MassLocated for Twhere
T: CoordinateLike<Mass>,
fn neutral_mass(&self) -> f64
Source§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.