Struct mzsignal::denoise::SignalBackgroundDenoiser
source · pub struct SignalBackgroundDenoiser {
pub window_size: f64,
pub region_size: u32,
}
Fields§
§window_size: f64
§region_size: u32
Implementations§
source§impl<'transient, 'lifespan: 'transient> SignalBackgroundDenoiser
impl<'transient, 'lifespan: 'transient> SignalBackgroundDenoiser
pub fn prepare_spectrum( &self, mz_array: &'lifespan [f64], intensity_array: &'lifespan mut [f32], scale: f32 ) -> DenoisingArrayPair<'lifespan>
pub fn denoise_inplace( &self, pair: &'lifespan mut DenoisingArrayPair<'_> ) -> Result<f32, DenoisingError>
pub fn denoise( &self, mz_array: &[f64], intensity_array: &mut [f32], scale: f32 ) -> Result<f32, DenoisingError>
Trait Implementations§
source§impl Clone for SignalBackgroundDenoiser
impl Clone for SignalBackgroundDenoiser
source§fn clone(&self) -> SignalBackgroundDenoiser
fn clone(&self) -> SignalBackgroundDenoiser
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 SignalBackgroundDenoiser
impl Debug for SignalBackgroundDenoiser
source§impl Default for SignalBackgroundDenoiser
impl Default for SignalBackgroundDenoiser
source§fn default() -> SignalBackgroundDenoiser
fn default() -> SignalBackgroundDenoiser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SignalBackgroundDenoiser
impl Send for SignalBackgroundDenoiser
impl Sync for SignalBackgroundDenoiser
impl Unpin for SignalBackgroundDenoiser
impl UnwindSafe for SignalBackgroundDenoiser
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.