Package org.jlab.service.ec
Class ECPeakSplitter.ECPeakSplitterMargin
java.lang.Object
org.jlab.service.ec.ECPeakSplitter.ECPeakSplitterMargin
- All Implemented Interfaces:
ECPeakSplitter
- Enclosing interface:
- ECPeakSplitter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Group class for clustering nearby hits in an array.Nested classes/interfaces inherited from interface org.jlab.service.ec.ECPeakSplitter
ECPeakSplitter.ECPeakSplitterClas6, ECPeakSplitter.ECPeakSplitterMargin, ECPeakSplitter.ECPeakSplitterOriginal
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic double
static double
static 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 groupvoid
evaluate
(double[] original, double[] derived, double threshold) double
max
(double[] peak) return maximum value in given arrayint
min
(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:
split
in interfaceECPeakSplitter
-