Skip to main content

quantile_parameter

Function quantile_parameter 

Source
fn quantile_parameter(
    grid: &Arc<EvalGrid>,
    quantile: f64,
    positions: &[usize],
) -> Result<Series>
Expand description

The parameter a quantile reads at each point: the φ the query wrote, unlabelled and single field, at positions and nowhere else.

The kernel reads q per point and treats a point it has no value at as a point with no result, so the parameter has to cover exactly the points that can be asked for and may omit every other one. GridSeriesBuilder is what makes that cheap: the axis keeps the runs of consecutive positions rather than a row per position, so two far-apart points cost two rows and two spans instead of every position between them.

An input holding no point has nothing to decide, which the kernel answers with no output: an empty scalar over the grid says the same thing and costs nothing.