parseFinderValue static method

int parseFinderValue(
  1. List<int> counters,
  2. List<List<int>> finderPatterns
)

Implementation

static int parseFinderValue(
  List<int> counters,
  List<List<int>> finderPatterns,
) {
  for (int value = 0; value < finderPatterns.length; value++) {
    if (OneDReader.patternMatchVariance(
          counters,
          finderPatterns[value],
          _maxIndividualVariance,
        ) <
        _maxAvgVariance) {
      return value;
    }
  }
  throw NotFoundException.instance;
}