summarise_intermediate_results function

Compute the mean of intermediate results