mean_dyn_blocks function

Calculate the mean of adjacent dynamic scans.