firstThresholdGreaterThan method
Implementation
int firstThresholdGreaterThan(double ratio, List<double> thresholds) {
int result = 0;
while (result < thresholds.length && thresholds[result] <= ratio) {
result++;
}
return result;
}
int firstThresholdGreaterThan(double ratio, List<double> thresholds) {
int result = 0;
while (result < thresholds.length && thresholds[result] <= ratio) {
result++;
}
return result;
}