Skip to main content

Module quantile

Module quantile 

Source
Expand description

Quantile / order-statistic helpers.

These are single-sourced in the gam-math crate (the neutral numeric layer shared by the sibling crates that consume them). This module re-exports them so existing crate::util::quantile::* paths keep resolving without a second, drift-prone copy of the definitions.

Functions§

order_statistic
Exact 1-based order statistic from an unsorted slice.
order_statistic_from_sorted
Exact 1-based order statistic from an already sorted slice.
quantile_from_sorted
Linear-interpolation quantile matching numpy.quantile default (method=‘linear’).