Class PatternSearch

java.lang.Object
org.scictrl.csshell.math.PatternSearch

public final class PatternSearch extends Object
Searches pattern in array of data.
  • 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 searched
      threshold - 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