A sum combines a finite or infinite sequence of terms by repeated addition. The symbol denotes summation over an index.
For positive weights , the weighted mean is
It lies between the smallest and largest ; the same result holds for integrals with a positive weight function.
The arithmetic mean of is
It is the weighted mean with equal weights.
The harmonic mean of positive numbers is . The Jensen inequality for gives , with equality exactly when all entries coincide.
The prefix sums can all be computed by the recurrence in linear time. Any contiguous sum is then , so it takes constant time after preprocessing.

Articles by others on the same topic (0)

There are currently no matching articles.