PeakPicker2D class

Peak picking utilities for a 2D array (matrix).

Constructors

PeakPicker2D()

Properties

colPeaks ↔ Map<int, List<int>>
read / write
rowPeaks ↔ Map<int, List<int>>
read / write
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

detectColPeaks(List<Float64List> matrix, int startRow, int endRow, int startCol, int endCol, double noise, double threshold, String peakSign, int maxPeaks) → void
Detects column peaks in matrix between startRow, endRow, startCol, endCol (end exclusive). peakSign is one of PeakPicker1D.PICK_POS, PICK_NEG, PICK_POSNEG. Puts result in colPeaks.
detectPeaks(List<Float64List> matrix, int startRow, int endRow, int startCol, int endCol, double noise, double threshold, String peakSign, int maxPeaks) → List<List<int>>
Detects 2D peaks in matrix. Method: Detects row an col peaks separately. A 2D peak is found if a row and a column both have a peak at their crossing point. Detection is performed in the submatrix defined by ixstartRows, ixendRows, ixstartCols, ixendCols (end 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 than threshold will not be added to the list. peakSign is one of PeakPicker1D's PICK_POS, PICK_NEG, PICK_POSNEG. If maxPeaks > 0, the returned list will only contain the maxPeaks biggest peaks (or smallest for negative peaks) of all detected ones. Possibly in this case the returned list has not the length maxPeaks*2, but it is smaller, even 0. Returns the peak coordinates as a list of row,col pairs: row, col, row, col, ... The resulting array's length is the number of peaks found.
detectRowPeaks(List<Float64List> matrix, int startRow, int endRow, int startCol, int endCol, double noise, double threshold, String peakSign, int maxPeaks) → List<List<int>>
Detects the peaks in each matrix row (1D picking for each row). ixstartRows, ixendRows, ixstartCols, ixendCols (end exclusive). All peaks <= threshold will not be added to the list. peakSign is one of PeakPicker1D.PICK_POS, PICK_NEG, PICK_POSNEG. If maxPeaks > 0, the returned list will only contain the maxPeaks biggest peaks (or smallest for negative peaks) of all detected ones. Possibly in this case the returned list has not the length maxPeaks*2, but it is smaller, even 0. Returns the peak coordinates as a list of row,col pairs: row, col, row, col, ... The resulting array's length is the number of peaks found. Puts result also into rowPeaks used by detectPeaks().
getColumnSorting(int drift) → List<List<List<int>>>
Assumes that detectRowPeaks() was called before. Sorts the resulting peaklist so as to return a "stacked peaks" list, sorted according same columns by considering drift. A peak in the result is given as a row,col pair. A list of such pairs represents "stacked peaks", i.e. peaks occuring in all rows at the same column (+-drift). In the contour display "stacked peaks" are displayed in the same column (+-drift). The returned list is a list of stacked peak lists, where the first list has the smalled column: Result = stacked peaklist1, stacked peaklist2, ... where stacked peaklist = [row, col, row, col,...], hence [[row, col, row, col,...], [row, col, row, col,...], ...] A peak is only taken over into a stacked peak list if its column index is no more than drift apart from the column index of the first row. [0, 20
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