Remove redundant variable in ::mean_interval method