Class PeakFind

java.lang.Object
gda.analysis.numerical.peakfind.PeakFind

public class PeakFind extends Object
Peak Finding class.
  • Constructor Details

    • PeakFind

      public PeakFind()
  • Method Details

    • mariscotti

      public static double[] mariscotti(DataVector x, DataVector y, double noiselevel)
      Mariscotti peak search algorithm... implemented based on original paper "A method for automatic identification of peaks" Nucl. Instruments and Methods 1967 (50) page 309-320 So I updated the algorithm to use the Savitky Golay smoothed second derivative The algorithm calculates the second derivative and compares this to the standard deviation of the second derivative. If the second derivative isn't >2 times the standard deviation then its not a peak. There are other bounding checks as well. The problem is just what is the standard deviation ? In some cases it is Sqrt(signal) (which is what is assumed in the original paper) but in others it won't. So I introduced a figure called noiselevel. standard dev = Math.sqrt (Sum of the filter coeffs * noiselevel * y(i)) Try values invalid input: '<' 1e-4 to start with. Overall the difficulty will be defining this level.
      Parameters:
      x -
      y -
      noiselevel -
      Returns:
      An int list of the index of the peak positions
    • main

      public static void main(String[] args)
      Main method used for testing.
      Parameters:
      args -