Class ECPeakSplitter.ECPeakSplitterMargin
java.lang.Object
org.jlab.service.ec.ECPeakSplitter.ECPeakSplitterMargin
- All Implemented Interfaces:
ECPeakSplitter
- Enclosing interface:
ECPeakSplitter
- Author:
- gavalian
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGroup class for clustering nearby hits in an array.Nested classes/interfaces inherited from interface ECPeakSplitter
ECPeakSplitter.ECPeakSplitterClas6, ECPeakSplitter.ECPeakSplitterMargin, ECPeakSplitter.ECPeakSplitterOriginal -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic doublestatic doublestatic double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyze(double[] buffer) cluster(double[] peak) cluster groups in given buffer and return Group class containing indicies for each cluster groupvoidevaluate(double[] original, double[] derived, double threshold) doublemax(double[] peak) return maximum value in given arrayintmin(double[] peak, int first, int last) return the index of the minimum value in the given array between indicies first and last (inclusive)
-
Field Details
-
DROP_TRESHOLD
public static double DROP_TRESHOLD -
MIN_HEIGHT
public static double MIN_HEIGHT -
DEEP_FRACTION
public static double DEEP_FRACTION
-
-
Constructor Details
-
ECPeakSplitterMargin
public ECPeakSplitterMargin()
-
-
Method Details
-
cluster
cluster groups in given buffer and return Group class containing indicies for each cluster group- Parameters:
peak-- Returns:
-
max
public double max(double[] peak) return maximum value in given array- Parameters:
peak- peak array- Returns:
- maximum value
-
min
public int min(double[] peak, int first, int last) return the index of the minimum value in the given array between indicies first and last (inclusive)- Parameters:
peak- the array containing the peak datafirst- first index to considerlast- last index to consider (inclusive)- Returns:
-
evaluate
public void evaluate(double[] original, double[] derived, double threshold) -
analyze
-
split
- Specified by:
splitin interfaceECPeakSplitter
-