Text this: Quarter-sweep arithmetic mean algorithm for water quality model