passengersim.callbacks.
combine¶
Combination of tracer results from several trials, workers, or saved runs.
A finalized tracer table declares how it combines with another table of the
same kind through df.attrs["aggregation_process"]. That string is the only
contract between the tracer that wrote the table and the code that combines
it, because it is all that survives once a result is saved. Combination is
looked up in a registry keyed by that string.
Process identifiers are part of the saved-result format: once published, an identifier never changes meaning. A change in meaning takes a new identifier, so results saved before and after the change are never silently mixed.
Functions
|
Stack two tables of per-sample rows, such as those of separate trials. |
|
Pool two tables of per-cell count, mean, and sample standard deviation exactly. |
|
Combine two values stored under the same |
|
Combine two per-sample means, weighted by |
|
Combine two per-trial means, weighted by |
|
Register how tables declaring an aggregation process are combined. |
Get the aggregation processes that have a registered combiner. |