jhpro.tseries
Class PeakFinder
- java.lang.Object
-
- jhpro.tseries.PeakFinder
-
public class PeakFinder extends java.lang.ObjectPeak finder algorithm. Given a spectrum and search parameters, performs a digital filter peak search as specified in V. Hnatowicz et al in Comp Phys Comm 60 (1990) 111-125. Setting the sensitivity to a typical value of 3 gives a 3% chance for any peak found to be false.Maximum separation in sigma between peaks is 1.3.
-
-
Field Summary
Fields Modifier and Type Field and Description Multiplet[]multipletsjava.lang.Stringname
-
Constructor Summary
Constructors Constructor and Description PeakFinder(java.lang.String name, double[] spectrum, double sensitivity, double width)Creates new PeakFinder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]getCentroids()Return centroids of the found peaks.Multiplet[]getPeaks()Return peaks in form of multiplets.voidsetMaxSeparation(double sep)Set maximum separation between the peaks in sigma (1.3 is the default).
-
-
-
Field Detail
-
multiplets
public Multiplet[] multiplets
-
name
public java.lang.String name
-
-
Constructor Detail
-
PeakFinder
public PeakFinder(java.lang.String name, double[] spectrum, double sensitivity, double width)Creates new PeakFinder. Given a spectrum and search parameters, performs a digital filter peak search as specified in V. Hnatowicz et al in Comp Phys Comm 60 (1990) 111-125. Setting the sensitivity to a typical value of 3 gives a 3% chance for any peak found to be false.- Parameters:
spectrum- spectrum to be searchedsensitivity- larger numbers (typical=3) require better defined peakswidth- typical FWHM of peaks in spectrum
-
-
Method Detail
-
setMaxSeparation
public void setMaxSeparation(double sep)
Set maximum separation between the peaks in sigma (1.3 is the default).- Parameters:
sep-
-
getCentroids
public double[] getCentroids()
Return centroids of the found peaks.- Returns:
- positions.
-
getPeaks
public Multiplet[] getPeaks()
Return peaks in form of multiplets.- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG