pub fn risk_coverage_curve(
confidences: &[f64],
correct: &[bool],
) -> Result<Vec<RiskCoverage>, MetricError>Expand description
Exact risk–coverage curve: sort by confidence descending; at each distinct threshold, coverage = kept fraction and accuracy = mean correctness among kept.
Points are returned from lowest coverage (most selective) to highest (keep all).
§Errors
MetricError::LengthMismatch / MetricError::EmptyInput on malformed inputs.