Trait mzdata::peaks::peak_set::PeakCollection [−][src]
pub trait PeakCollection<T: CoordinateLike<C>, C>: Index<usize> where
<Self as Index<usize>>::Output: CoordinateLike<C>, { fn push(&mut self, peak: T); fn sort(&mut self); fn len(&self) -> usize; fn get_item(&self, i: usize) -> &T; fn get_slice(&self, i: Range<usize>) -> &[T]ⓘ; fn _search_by(&self, query: f64) -> Result<usize, usize>; fn is_empty(&self) -> bool { ... } fn _closest_peak(
&self,
query: f64,
error_tolerance: f64,
i: usize,
error_type: MassErrorType
) -> Option<usize> { ... } fn search(
&self,
query: f64,
error_tolerance: f64,
error_type: MassErrorType
) -> Option<usize> { ... } fn has_peak(
&self,
query: f64,
error_tolerance: f64,
error_type: MassErrorType
) -> Option<&T> { ... } fn between(
&self,
low: f64,
high: f64,
error_tolerance: f64,
error_type: MassErrorType
) -> &[T]ⓘ { ... } fn all_peaks_for(
&self,
query: f64,
error_tolerance: f64,
error_type: MassErrorType
) -> &[T]ⓘ { ... } }
Expand description
A trait for an ordered container of mass spectral peaks. The trait
interoperates with CoordinateLike
to make searching efficient.
Required methods
Provided methods
fn _closest_peak(
&self,
query: f64,
error_tolerance: f64,
i: usize,
error_type: MassErrorType
) -> Option<usize>