detectColPeaks method
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.
Implementation
void detectColPeaks(
List<Float64List> matrix,
int startRow,
int endRow,
int startCol,
int endCol,
double noise,
double threshold,
String peakSign,
int maxPeaks) {
colPeaks = Map<int, List<int>>();
Float64List col;
List<int> peaks1D;
for (int i = startCol; i < endCol; i++) {
col = Array2D.getColumn(matrix, i);
peaks1D = PeakPicker1D.detectPeaks(
col, startRow, endRow, noise, threshold, peakSign, maxPeaks);
if (peaks1D.isNotEmpty) colPeaks[i] = peaks1D;
}
}