Dynamical reweighting