recall property

double get recall

Of the real violations, the fraction the rule caught. Undefined when there were none; reported as 1.0.

Implementation

double get recall {
  final real = truePositives + falseNegatives;
  return real == 0 ? 1.0 : truePositives / real;
}