Skip to main content

ordinal_set_rps

Function ordinal_set_rps 

Source
pub fn ordinal_set_rps(probs: &[f64], qhat: f64) -> (usize, usize)
Expand description

RPS-CP prediction interval: the contiguous hull of {k : rps_nonconformity(p, k) ≤ qhat}. (The raw set is already contiguous for unimodal histograms; the hull guarantees the interval contract for multimodal ones.) Falls back to the lowest-nonconformity single level if no level clears qhat.