generalizes the temporal torus translation  from the variance ratio code