Skip to main content

into_value

Function into_value 

Source
fn into_value(sample: SampleRef<'_>) -> Result<Option<f64>>
Expand description

A sample as a value for an operator that ranks or sorts reads it.

The callers read floats only – sort drops the histogram samples before it keys a series by a value, and topk collects float candidates – so a histogram here is a broken invariant rather than an input.