Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Loop Utils » AccumulateElements

AccumulateElements


Creates an array from elements appearing in many iterations.

Name Type Range Description
inElement T? Element to be put into an array
inCondition Bool Flag indicating whether to put the input element into an array or not
inMaxSize Integer* 0 - Maximum number of last elements that are remembered
inReset Bool Reset accumulator state
outArray TArray Array of accumulated elements

The type of this filter is defined using the type variable T which represents any valid type. Read more.

Hints

  • Instantiate this filter with a conditional type to create an array with conditional elements.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inMaxSize cannot be negative in AccumulateElements.

Complexity Level

This filter is available on Basic Complexity Level.