mean_dyns function

Calculate the mean dynamic data.