Package org.scictrl.csshell.math
Class PatternSearch
java.lang.Object
org.scictrl.csshell.math.PatternSearch
Searches pattern in array of data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final int[]
findBreakpointsHiLoHHi
(double[] data, double threshold) Finds breakpoints, which are in this order: High1, Low1, High2; where High2 is higher than High1.
-
Method Details
-
findBreakpointsHiLoHHi
public static final int[] findBreakpointsHiLoHHi(double[] data, double threshold) Finds breakpoints, which are in this order: High1, Low1, High2; where High2 is higher than High1.- Parameters:
data
- array with measurements to be searchedthreshold
- measurement data values below this threshold are ignored- Returns:
- array with three indexes for breakpoints (High1, Min1, High2), if value is -1 then breakpoint has not been found
-