Function that computes a sum of values in a bin
binSum(x, n)
x
NumericVector - vector of values of a bin
n
intiger - number of bins