PeakFinder
jhpro.tseries

Class PeakFinder



  • public class PeakFinderextends Object
    Peak 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 TypeField and Description
      jhpro.tseries.Multiplet[]multiplets 
      Stringname 
    • Constructor Summary

      Constructors 
      Constructor and Description
      PeakFinder(String name, double[] spectrum, double sensitivity, double width)
      Creates new PeakFinder.
    • Field Detail

      • multiplets

        public jhpro.tseries.Multiplet[] multiplets
    • Constructor Detail

      • PeakFinder

        public PeakFinder(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 searched
        sensitivity - larger numbers (typical=3) require better defined peaks
        width - 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 jhpro.tseries.Multiplet[] getPeaks()
        Return peaks in form of multiplets.
        Returns:

SCaVis 1.8 © jWork.org