Skip to main content

evaluate_histograms

Function evaluate_histograms 

Source
pub fn evaluate_histograms(
    function: HistogramFunction,
    schema: &Arc<SeriesSchema>,
    series: &[Series],
) -> Result<Vec<Series>>
Expand description

Evaluates function over the classic and native histograms in series.

Float series with the same labels other than le form a classic histogram; a float series whose le does not parse is ignored. Native histogram samples are evaluated one by one. At a point where a native histogram and classic buckets with the same labels (le aside) are both present, neither is evaluated. Each field is evaluated on its own. Classic results drop le; all results drop __name__, __type__ and __unit__. Series that then share a label set are merged as merge_same_labelset does.