Struct peakbag::PeakDetector
[−]
[src]
pub struct PeakDetector<T: Copy> { // some fields omitted }
Configurable struct for detecting peaks.
This structure allow for fine-grained adjustment of the peak detection procedures.
Methods
impl<T: Copy> PeakDetector<T>
fn new(width: usize, floor: T, ceiling: T) -> PeakDetector<T>
Creates a new peak detector.
Examples
use peakbag::PeakDetector; let detector = PeakDetector::new(1, 2, 3);
fn saturation(self, saturation: T) -> PeakDetector<T>
Sets the saturation level for this peak detector.
Examples
use peakbag::PeakDetector; let mut detector = PeakDetector::new(1, 2, 3).saturation(3);
fn min_height_above_background(self, min_height_above_background: f64) -> PeakDetector<T>
Sets the minimum allowable height above background for a peak.
Examples
use peakbag::PeakDetector; let mut detector = PeakDetector::new(1, 2, 3).min_height_above_background(4.0);
fn max_kurtosis(self, max_kurtosis: f64) -> PeakDetector<T>
Sets the maximum allowable kurtosis for a peak.
Examples
use peakbag::PeakDetector; let detector = PeakDetector::new(1, 2, 3).max_kurtosis(4.0);