mean_dyn_pairs function

Calculate the pairwise means across a dynamic data set.