DeconvolvedSolutionFeature

Struct DeconvolvedSolutionFeature 

Source
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>

Source

pub fn new( inner: ChargedFeature<Mass, Y>, score: ScoreType, scores: Vec<ScoreType>, envelope: Box<[MZPointSeries]>, ) -> Self

Source

pub fn as_inner(&self) -> &ChargedFeature<Mass, Y>

Source

pub fn into_inner( self, ) -> (ChargedFeature<Mass, Y>, Vec<ScoreType>, Box<[MZPointSeries]>)

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn iter(&self) -> Iter<'_, Mass, Y>

Source

pub fn iter_mut(&mut self) -> IterMut<'_, Mass, Y>

Source

pub fn iter_peaks(&self) -> PeakIter<'_, Y>

Source

pub fn iter_envelope(&self) -> EnvelopeIter<'_, Y>

Source

pub fn push<T: CoordinateLike<Mass> + IntensityMeasurement>( &mut self, pt: &T, time: f64, )

Source

pub fn push_peak(&mut self, peak: &DeconvolvedSolutionPeak, time: f64)

Source

pub fn envelope(&self) -> Vec<FeatureView<'_, MZ, Y>>

Trait Implementations§

Source§

impl<Y0: Clone> AsMut<ChargedFeature<Mass, Y0>> for DeconvolvedSolutionFeature<Y0>

Source§

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>

Source§

type Peak = DeconvolvedSolutionPeak

Source§

type Iter<'a> = PeakIter<'a, Y> where Self: 'a

Source§

fn iter_peaks(&self) -> Self::Iter<'_>

Source§

impl<Y0: Clone> AsRef<ChargedFeature<Mass, Y0>> for DeconvolvedSolutionFeature<Y0>

Source§

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>

Source§

fn as_arrays_3d(source: &[Self]) -> BinaryArrayMap3D

Source§

impl BuildArrayMapFrom for DeconvolvedSolutionFeature<IonMobility>

Source§

impl BuildFromArrayMap for DeconvolvedSolutionFeature<IonMobility>

Source§

fn arrays_required() -> Option<Vec<ArrayType>>

Source§

fn try_from_arrays( arrays: &BinaryArrayMap, ) -> Result<Vec<Self>, ArrayRetrievalError>

Source§

fn from_arrays(arrays: &BinaryArrayMap) -> Vec<Self>

Source§

fn has_arrays_for(arrays: &BinaryArrayMap) -> ArraysAvailable

A pre-emptive check for the presence of the required arrays.
Source§

impl BuildFromArrayMap3D for DeconvolvedSolutionFeature<IonMobility>

Source§

impl<Y: Clone> BuildFromPeak<DeconvolvedSolutionPeak> for DeconvolvedSolutionFeature<Y>

Source§

fn push_peak(&mut self, value: &DeconvolvedSolutionPeak, time: f64)

Like FeatureLikeMut::push but permitting specialized behavior
Source§

fn extend_from_peaks<I>(&mut self, iter: I)
where I: IntoIterator<Item = (T, f64)>,

Source§

impl<Y: Clone + Clone> Clone for DeconvolvedSolutionFeature<Y>

Source§

fn clone(&self) -> DeconvolvedSolutionFeature<Y>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Y0: Clone> CoordinateLike<MZ> for DeconvolvedSolutionFeature<Y0>

Source§

fn coordinate(&self) -> f64

The trait method for accessing the coordinate of the object on coordinate system T
Source§

impl<Y0: Clone> CoordinateLike<Mass> for DeconvolvedSolutionFeature<Y0>

Source§

fn coordinate(&self) -> f64

The trait method for accessing the coordinate of the object on coordinate system T
Source§

impl<Y: Debug + Clone> Debug for DeconvolvedSolutionFeature<Y>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Y: Clone> Default for DeconvolvedSolutionFeature<Y>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

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>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<Y0: Clone> FeatureLike<Mass, Y0> for DeconvolvedSolutionFeature<Y0>

Source§

fn len(&self) -> usize

The number of points in the feature
Source§

fn iter(&self) -> impl Iterator<Item = (f64, f64, f32)>

Create an iterator that yields (x, y, intensity) references
Source§

fn is_empty(&self) -> bool

Check if the feature has any points in it
Source§

fn at(&self, index: usize) -> Option<(f64, f64, f32)>

Get an immutable reference to feature data at a specified index
Source§

fn first(&self) -> Option<(f64, f64, f32)>

Retrieve the first time point, if it exists
Source§

fn last(&self) -> Option<(f64, f64, f32)>

Retrieve the last time point, if it exists
Source§

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::at
Source§

impl<Y0: Clone> FeatureLikeMut<Mass, Y0> for DeconvolvedSolutionFeature<Y0>

Source§

fn clear(&mut self)

Clear all the series dimensions. Read more
Source§

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, )

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)

As FeatureLikeMut::push, but instead add raw values instead of deriving them from a peak-like reference.
Source§

fn reserve(&mut self, capacity: usize)

Optimistically reserve additional space for capacity entries in the underlying storage. Read more
Source§

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)>

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)>

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)>

Get a mutable reference to feature data at a specified time. Analogous to combining TimeInterval::find_time with FeatureLikeMut::at_mut
Source§

impl<'a, Y: Clone + 'a> FitPeaksOn<'a> for DeconvolvedSolutionFeature<Y>

Source§

fn as_peak_shape_args(&'a self) -> PeakFitArgs<'a, 'a>

Source§

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>

Source§

fn from(value: &'a DeconvolvedSolutionFeature<Y>) -> Self

Converts to this type from the input type.
Source§

impl<Y0: Clone> IntensityMeasurement for DeconvolvedSolutionFeature<Y0>

Source§

fn intensity(&self) -> f32

Source§

impl<Y0: Clone> KnownCharge for DeconvolvedSolutionFeature<Y0>

Source§

fn charge(&self) -> i32

Source§

impl<Y: Clone> KnownChargeMut for DeconvolvedSolutionFeature<Y>

Source§

fn charge_mut(&mut self) -> &mut i32

Source§

impl<Y: Clone> PartialEq for DeconvolvedSolutionFeature<Y>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Y: Clone> PartialOrd for DeconvolvedSolutionFeature<Y>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<Y> Serialize for DeconvolvedSolutionFeature<Y>
where Y: Serialize + Clone,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<Y: Clone> SplittableFeatureLike<'_, Mass, Y> for DeconvolvedSolutionFeature<Y>

Source§

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)

Split the feature at time. Read more
Source§

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

Select the positions given by the range of positions in bounds
Source§

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 more
Source§

fn split_when<F>(&'a self, f: F) -> Vec<Self::ViewType>
where F: FnMut((f64, f64, f32), (f64, f64, f32)) -> bool,

Given a function f that takes successive pairs of points of (dim1, dim2, intensity) and returns a bool, mask all out all positions where f returns true. Read more
Source§

fn split_sparse(&'a self, max_gap_size: f64) -> Vec<Self::ViewType>

Split the feature when there is a gap of size max_gap_size or more in the time dimension
Source§

impl<Y0: Clone> TimeArray<Y0> for DeconvolvedSolutionFeature<Y0>

Source§

fn time_view(&self) -> &[f64]

A slice over the complete time dimension
Source§

fn intensity_view(&self) -> &[f32]

A slice over the complete intensity dimension
Source§

impl<Y0: Clone> TimeInterval<Y0> for DeconvolvedSolutionFeature<Y0>

Source§

fn apex_time(&self) -> Option<f64>

The time point where the feature reaches its greatest intensity
Source§

fn area(&self) -> f32

Integrate the feature in the time dimension
Source§

fn end_time(&self) -> Option<f64>

The latest time point recorded
Source§

fn start_time(&self) -> Option<f64>

The earliest time point recorded
Source§

fn iter_time(&self) -> impl Iterator<Item = f64>

Return an iterator over the time dimension
Source§

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>

Represent the TimeInterval into a CoordinateRange
Source§

fn spans(&self, time: f64) -> bool

Check if a time point is spanned by TimeInterval

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<X, Y, T> FeatureTransform<X, Y> for T
where T: FeatureLike<X, Y> + FeatureLikeMut<X, Y> + TimeArray<Y> + Clone,

Source§

fn smooth(&mut self, size: usize)

Source§

fn rebin(&self, dt: f64) -> Self

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> MZLocated for T
where T: CoordinateLike<MZ>,

Source§

fn mz(&self) -> f64

Source§

impl<T> MassLocated for T
where T: CoordinateLike<Mass>,

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T, F> PeakSeries for F
where F: AsPeakIter<Peak = T> + BuildFromPeak<T>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,