reliability property

double get reliability

Share of runs whose geometry is trustworthy (1 = everything precise).

Implementation

double get reliability {
  if (runs.isEmpty) return 1;
  int good = 0;
  for (final UDocTextRun run in runs) {
    if (run.reliable && run.hasCharGeometry) good++;
  }
  return good / runs.length;
}