IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
detect_peaks.m File Reference

Detailed Description

Peak detector.

This algorithm is a simplified version of [1]. What is referred to as "noise" in the publication can be considered as the minhei parameter.

References

[1] K. R. Coombes et al., Quality control and peak finding for proteomics data collected from nipple aspirate fluid by surface-enhanced laser desorption and ionization.,” Clinical chemistry, vol. 49, no. 10, pp. 1615-23, Oct. 2003.

Definition in file detect_peaks.m.

Go to the source code of this file.

Functions

function detect_peaks (in y, in minalt, in minhei, in mindist)
 

Function Documentation

function detect_peaks ( in  y,
in  minalt,
in  minhei,
in  mindist 
)
Parameters
yVector of values.
minalt=0Minimum altitude (distance from zero to montain top).
minhei=0Minimum height (distance from highest foot (either left or right)) to mountain top.
mindist=1Minimum horizontal distance between two peaks. Peak pruning based on this is done in an iterative way to keep the highest peak of a set of peaks too close to each other.
Returns
Indexes of detected peaks