combine_wgt_by_samples

passengersim.callbacks.combine.combine_wgt_by_samples(a: DataFrame, b: DataFrame) → DataFrame[source]

Combine two per-sample means, weighted by attrs["n_samples"].

If either frame carries a segmentation_coverage attribute, the coverage of the two is merged as well.