The ConditionalIntegrator filter accumulates (integrates) its input signal over time, depending on the value of a given boolean expression.
Typically, the ConditionalIntegrator is used in off-line analysis of data collected in a cursor movement paradigm. During on-line operation, the feedback cursor's position represents the integral of the control signal. For off-line parameter simulation experiments, the ConditionalIntegrator performs this integration, resulting in an output equivalent to cursor position on the feedback screen.
A boolean expression that determines whether the signal is integrated. When the expression first evaluates to true, the filter's output is set to zero. Then, while the expression evaluates to true, filter input is integrated, and the integral is returned as the filter output. When the expression first evaluates to false, filter output is constant, until the expression again evaluates to true.
Any existing state may be part of the IntegrationCondition expression.
A typical feedback task sets the Feedback state to 1 during cursor movement. Accordingly, one would use
in an off-line simulation.