sumOverIndex¶
A shorthand for sum
and slice.
sumOverIndex(
startIndex,
endIndex,
vector1,
vector2,
…
)
This is equivalent to:
sum(slice(vector1, startIndex, endIndex))
+ sum(slice(vector2, startIndex, endIndex))
+ …
Arguments¶
startIndex- The first index to retrieve from the vector. Inclusive.
endIndex- The last index to retrieve from the vector. Inclusive.
vector1,vector2, …- The vectors whose slices will be summed.
Examples¶
See the example workbook.