Interface IPeakFinder


public interface IPeakFinder
  • Method Details

    • getName

      String getName()
      Get the name of the peak finding method.
      Returns:
      peak finder's name
    • getParameters

      Map<String,IPeakFinderParameter> getParameters()
      Get the map of parameters which can be set for this method.
      Returns:
      invalid input: '<'String name, Number value> map of all parameters available to control this IPeakFinder.
    • getParameter

      IPeakFinderParameter getParameter(String pName) throws Exception
      Get a named parameter from the set of parameters.
      Parameters:
      pName - name of the parameter in the map
      Returns:
      parameter value
      Throws:
      Exception
    • getParameterValue

      Number getParameterValue(String pName) throws Exception
      Gets the current numerical value of the named parameter
      Parameters:
      pName - String name of parameter
      Returns:
      Number value of the parameter
      Throws:
      Exception
    • setParameter

      void setParameter(String pName, IPeakFinderParameter param) throws Exception
      Change the current value of a named parameter with a parameter
      Parameters:
      pName - String name of parameter
      param - IPeakFinderParameter object
      Throws:
      Exception
    • setParameterValue

      void setParameterValue(String pName, Number pValue) throws Exception
      Change the current value of a named parameter to the given value.
      Parameters:
      pName - name of the parameter to update
      pValue - parameter value
      Throws:
      Exception
    • findPeaks

      Map<Integer,Double> findPeaks(org.eclipse.january.dataset.IDataset xData, org.eclipse.january.dataset.IDataset yData, Integer nPeaks)
      An implementation of an algorithm capable of identifying a number peaks within a one dimensional dataset. As its input, this method takes the dataset and two optional arguments, the x-coordinate dataset and the maximum number of peaks to find. This algorithm may have a set of additional parameters to control its behaviour, which may be accessed/changed using the getters/setters of this class.
      Parameters:
      xData - x-coordinate dataset
      yData - histogram/distribution dataset to find peaks in
      nPeaks - maximum number of peaks to find
      Returns:
      A set containing all or a number of peaks found by this IPeakFinder
    • resetParameters

      void resetParameters()
      Restore peak finder parameters to the default values of this class