Skip to main content

aggregate_columns

Function aggregate_columns 

pub fn aggregate_columns(
    rows: &[Vec<f64>],
    aggregate: Aggregate,
) -> Result<Vec<f64>>
Expand description

Aggregates a fan of multi-objective replicate values, one aggregate per objective dimension.

rows[r] is replicate r’s value vector (one entry per study direction); the result is one aggregate per direction.

§Errors

Error::InvalidSpace if rows is empty, if the rows disagree on length, or if a row is empty.