Skip to main content

auc_trapezoid

Function auc_trapezoid 

Source
pub fn auc_trapezoid(points: &[(f64, f64)]) -> f64
Expand description

Trapezoidal integration of y over x for a sequence of (x, y) points assumed sorted by ascending x.

Exposed because AUC is just this applied to (fpr, tpr); callers with their own point sets can reuse it directly.