Combining dynamical and statistical ensembles | Synapse