Interface IPeakFinder
public interface IPeakFinder
-
Method Summary
Modifier and TypeMethodDescriptionfindPeaks(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.getName()Get the name of the peak finding method.getParameter(String pName) Get a named parameter from the set of parameters.Get the map of parameters which can be set for this method.getParameterValue(String pName) Gets the current numerical value of the named parametervoidRestore peak finder parameters to the default values of this classvoidsetParameter(String pName, IPeakFinderParameter param) Change the current value of a named parameter with a parametervoidsetParameterValue(String pName, Number pValue) Change the current value of a named parameter to the given value.
-
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
Get a named parameter from the set of parameters.- Parameters:
pName- name of the parameter in the map- Returns:
- parameter value
- Throws:
Exception
-
getParameterValue
Gets the current numerical value of the named parameter- Parameters:
pName- String name of parameter- Returns:
- Number value of the parameter
- Throws:
Exception
-
setParameter
Change the current value of a named parameter with a parameter- Parameters:
pName- String name of parameterparam- IPeakFinderParameter object- Throws:
Exception
-
setParameterValue
Change the current value of a named parameter to the given value.- Parameters:
pName- name of the parameter to updatepValue- 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 datasetyData- histogram/distribution dataset to find peaks innPeaks- 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
-