accumulate_threshold | R Documentation |
The vector will accumulate each pair of adjacent elements, similar to Reduce
with the accumulate parameter.
If the summation of the two elements is greater than the threshold, the returned value of that cycle is zero. Primary use is within
assign_episode
function to provide a speed boost in the looping procedure.
accumulate_threshold(x, threshold)
x |
Numeric vector. |
threshold |
Integer value. |
Numeric vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.