rmm: use average as M_i