Return mean instead of vector for dp