PeakPicker1D class
Utilities for peak detection in one-dimensional arrays
Constructors
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
betweenixstart
,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 tothreshold
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. IfmaxPeaks
> 0, the returned list will only contain themaxPeaks
biggest peaks (or smallest for negative peaks). Returns a list of sorted indices where the peaks occur inarray
. -
detectPeaks0(
Float64List data, int ixstart, int ixend, double noise, double threshold, bool pickNegs, int maxPeaks) → List< int> -
Helper for detectPeaks().
Detects peaks in
data
betweenixstart, 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). IfpickNegs
is true, find only negative peaks. IfmaxPeaks
> 0, the returned list will only contain themaxPeaks
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
betweenixstart, 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. IfpickNegs
is true, find only negative peaks. Returnslist indices emission peaks, list indices absorption peaks
(could be empty, but not null).