#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "peaks.h"
Functions | |
int | specFindPeak (INT32 *spec, int length, float *pcentroid, float *psize, int loch, int hich, int ifwhm, float sigma, int maxpk) |
find all the peaks in an intensity profile. |
|
find all the peaks in an intensity profile. the algorithm looks for gaussian-like peaks by looking for local maxima in a fit score. the fit score is the difference of the integrated intensity within 1 fwhm and the integrated intensity between 1 and 2 fwhm away from the point, normalizded by the integrated intensity within 2 fwhm of the point.
|