MovingAverage¶
Smooth the signal using a moving average.
Each output sample is the average of the k input samples up to that sample. The window length can be given in seconds or samples. This filter is much more CPU-efficient for smoothing than using an FIR or IIR filter, especially for long window lengths. This filter maintains internal state to smooth seamlessly across chunk boundaries. More Info... Version 1.2.1
Ports/Properties¶
data¶
Data to process.
axis¶
Axis to average over. Rarely used. If you select instance, then successive trials will be averaged in a moving window, and the window length will be given in trials (choosing 'seconds' as the unit has no effect).
order¶
Window length (order) of the filter. This is the number of samples or seconds (see unit parameter) over which we average.
order_unit¶
Unit in which the window length is given.
ignore_nans¶
If activated, NaN values are ignored as in nanmean.
output_nans¶
If enabled, values that were NaN in the input data will be set to NaN in the output.
subtract¶
Subtract from data.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.