Calculate normalising constants for Bayesian time series models.