pub struct PeakOptions {
pub height: Option<Bounds>,
pub threshold: Option<Bounds>,
pub distance: Option<f64>,
pub prominence: Option<Bounds>,
pub width: Option<Bounds>,
pub wlen: Option<f64>,
pub rel_height: f64,
pub plateau_size: Option<Bounds>,
}Expand description
The selection criteria of find_peaks; None disables a criterion. The defaults select
every local maximum.
Fields§
§height: Option<Bounds>Required peak value.
threshold: Option<Bounds>Required vertical drop to the neighbouring samples (both sides).
distance: Option<f64>Minimum horizontal distance in samples to the nearest kept peak; of two closer peaks the lower one is removed.
prominence: Option<Bounds>Required prominence.
width: Option<Bounds>Required width in samples, measured at rel_height of the prominence.
wlen: Option<f64>Window length in samples that limits the search for a peak’s bases (prominence).
rel_height: f64Where the width is measured, as a fraction of the prominence below the peak (default 0.5).
plateau_size: Option<Bounds>Required plateau length in samples.
Trait Implementations§
Source§impl Clone for PeakOptions
impl Clone for PeakOptions
impl Copy for PeakOptions
Source§impl Debug for PeakOptions
impl Debug for PeakOptions
Source§impl Default for PeakOptions
impl Default for PeakOptions
Source§impl PartialEq for PeakOptions
impl PartialEq for PeakOptions
impl StructuralPartialEq for PeakOptions
Auto Trait Implementations§
impl Freeze for PeakOptions
impl RefUnwindSafe for PeakOptions
impl Send for PeakOptions
impl Sync for PeakOptions
impl Unpin for PeakOptions
impl UnsafeUnpin for PeakOptions
impl UnwindSafe for PeakOptions
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