Skip to main content

binary_vectors

Function binary_vectors 

Source
pub fn binary_vectors(
    matching: &BinaryMatching,
    lhs_schema: &SeriesSchema,
    lhs: &[Series],
    rhs_schema: &SeriesSchema,
    rhs: &[Series],
) -> Result<Vec<Series>>
Expand description

Applies matching to every pair of matched series at every grid point.

Fields are paired by position. Arithmetic and bool comparisons drop __name__, __type__ and __unit__; comparisons without bool keep the left value where they hold. Native histograms support +, -, == and != with each other, * with a float on either side and / by a float; Prometheus skips any other pairing of a histogram. A fill value pairs a sample that has no match with a float sample labelled with its match group.