Documentation of 'jhpro.tseries.PeakFinder' Java class
PeakFinder
jhpro.tseries

Class PeakFinder



  • public class PeakFinder
    extends java.lang.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.
    • 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.
      void setMaxSeparation(double sep)
      Set maximum separation between the peaks in sigma (1.3 is the default).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 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 Multiplet[] getPeaks()
        Return peaks in form of multiplets.
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.