This function calculates the Area Under the Precision-Recall Curve (AUPRC).
It uses the trapezoidal rule to compute the AUPRC from the recall and precision values.
Usage
calculate_auprc(recall, precision)
Arguments
recall
A numeric vector of recall values (sensitivity) from the precision-recall curve.
precision
A numeric vector of precision values from the precision-recall curve.