PeakPicker1D class

Utilities for peak detection in one-dimensional arrays

Constructors

PeakPicker1D()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Properties

PICK_NEG → String
Used to select which type of peaks get picked
final
PICK_POS → String
Used to select which type of peaks get picked
final
PICK_POSNEG → String
Used to select which type of peaks get picked
final

Static Methods

detectPeaks(Float64List array, int ixstart, int ixend, double noise, double threshold, String peakSign, int maxPeaks) → List<int>
Detects peaks in array between ixstart, ixend (ixend exclusive). noise is used for differentiating peaks from noise, i.e. small variations of the array values, e.g. in case the values represent measurements.The noise is data dependent and must be estimated from the data. All peaks less or equal to threshold will not be added to the list. peakSign is one of PICK_POS, PICK_NEG, PICK_POSNEG to pick only positive or only negative peaks, or peak of any sign. If maxPeaks > 0, the returned list will only contain the maxPeaks biggest peaks (or smallest for negative peaks). Returns a list of sorted indices where the peaks occur in array.
detectPeaks0(Float64List data, int ixstart, int ixend, double noise, double threshold, bool pickNegs, int maxPeaks) → List<int>
Helper for detectPeaks(). Detects peaks in data between ixstart, ixend (ixend exclusive). noise is used for differentiating peaks from noise. All peaks <= threshold will not be addedto the list. Returns a list of sorted indices in the data array. (could be empty, but not null). If pickNegs is true, find only negative peaks. If maxPeaks > 0, the returned list will only contain the maxPeaks biggest peaks (or smallest for negative peaks)
detectPeaksEmiAbs(Float64List data, int ixstart, int ixend, double noise, bool emi_first, double threshold, bool pickNegs) → List<List<int>>
Helper for detectPeaks0(). Detects peaks in data between ixstart, ixend (ixend exclusive). noise is used for differentiating peaks from noise. emi_first == true if emission peaks to be searched first. (emission = "mountains" peaks, absorption = "valleys"). All peaks <= threshold will not be addedto the list. If pickNegs is true, find only negative peaks. Returns list indices emission peaks, list indices absorption peaks (could be empty, but not null).
getWidth(Float64List yvals, int peakindex) → double
Returns an estimate of the width at half height of the peak at peakindex of the data given by yvals. This assumes a Gauss/Lorentz type line shape.