Enum mzsignal::peak_picker::PeakFitType
source · pub enum PeakFitType {
Quadratic,
Apex,
Lorentzian,
}
Expand description
The type of peak picking to perform, defining the expected peak shape fitting function.
Variants§
Quadratic
Fit a Gaussian peak shape using a closed form quadratic function to determine the true peak centroid from the digitized signal.
Apex
A simple fit which assumes that the highest point is the centroid. If the digitized signal doesn’t directly strike the apex, there will be a small amount of error.
Lorentzian
Fit a Lorentzian peak shape using an iterative least squares solution searching an approximate local optimum.
Trait Implementations§
source§impl Clone for PeakFitType
impl Clone for PeakFitType
source§fn clone(&self) -> PeakFitType
fn clone(&self) -> PeakFitType
Returns a copy 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 PeakFitType
impl Debug for PeakFitType
source§impl Default for PeakFitType
impl Default for PeakFitType
source§fn default() -> PeakFitType
fn default() -> PeakFitType
Returns the “default value” for a type. Read more
source§impl PartialEq for PeakFitType
impl PartialEq for PeakFitType
source§fn eq(&self, other: &PeakFitType) -> bool
fn eq(&self, other: &PeakFitType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PeakFitType
impl Eq for PeakFitType
impl StructuralPartialEq for PeakFitType
Auto Trait Implementations§
impl Freeze for PeakFitType
impl RefUnwindSafe for PeakFitType
impl Send for PeakFitType
impl Sync for PeakFitType
impl Unpin for PeakFitType
impl UnwindSafe for PeakFitType
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> 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.