MetaWards.mixers API Detail

Functions

InteractionMatrix(n, value)

This is an interaction matrix, which is used to control how the FOIs of different demographics are merged together.

merge_evenly(network, nthreads, profiler, …)

This merge_function merges the FOIs across all demographic sub-networks evenly.

mix_custom(custom_function, stage, **kwargs)

This returns the default list of ‘merge_XXX’ functions that are called in sequence for each iteration of the model run.

mix_default(**kwargs)

This is the default mixer.

mix_evenly(stage, network, **kwargs)

This mixer will evenly mix all demographics.

mix_none(**kwargs)

This mixer will perform no mixing.