Internal function to compute the smoothN accumulator.
Usage
compute_smoothN(input, state, length, order)
Arguments
- input
Input value to process.
- state
Current state of the accumulator.
- length
Length of the smoothing.
- order
Order of the smoothing.
Value
A list containing the outflow value and the updated state.