auc_segment_with_tmax

Function auc_segment_with_tmax 

pub fn auc_segment_with_tmax(
    t1: f64,
    c1: f64,
    t2: f64,
    c2: f64,
    tmax: f64,
    method: &AUCMethod,
) -> Result<f64, ObservationError>
Expand description

Calculate AUC for a segment with Tmax context (for LinLog method)

This is the fully-aware version: for LinLog, it uses linear trapezoidal before/at Tmax, and log-linear for descending portions after Tmax.