Provides a method to compute a mean incrementally.