Struct mzsignal::peak_picker::PeakPicker
source · pub struct PeakPicker {
pub background_intensity: f32,
pub intensity_threshold: f32,
pub signal_to_noise_threshold: f32,
pub partial_fit_state: PartialPeakFit,
pub fit_type: PeakFitType,
}
Fields§
§background_intensity: f32
§intensity_threshold: f32
§signal_to_noise_threshold: f32
§partial_fit_state: PartialPeakFit
§fit_type: PeakFitType
Implementations§
source§impl PeakPicker
impl PeakPicker
pub fn discover_peaks( &self, mz_array: &[f64], intensity_array: &[f32], peak_accumulator: &mut Vec<FittedPeak> ) -> Result<usize, PeakPickerError>
pub fn fit_peak( &self, index: usize, mz_array: &[f64], intensity_array: &[f32], partial_fit: &PartialPeakFit ) -> f64
pub fn discover_peaks_in_interval( &self, mz_array: &[f64], intensity_array: &[f32], peak_accumulator: &mut Vec<FittedPeak>, start_mz: f64, stop_mz: f64 ) -> Result<usize, PeakPickerError>
Trait Implementations§
source§impl Clone for PeakPicker
impl Clone for PeakPicker
source§fn clone(&self) -> PeakPicker
fn clone(&self) -> PeakPicker
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 PeakPicker
impl Debug for PeakPicker
source§impl Default for PeakPicker
impl Default for PeakPicker
source§fn default() -> PeakPicker
fn default() -> PeakPicker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PeakPicker
impl Send for PeakPicker
impl Sync for PeakPicker
impl Unpin for PeakPicker
impl UnwindSafe for PeakPicker
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.