MedianFilter¶
Calculate a sliding-window median over the data.
This node requires that the data is a continuous time series (that is, has a time axis and is not segmented). The node works both with streaming and offline data, and replaces each value by the median of the k preceding input samples (where k is window_len worth of samples). This filter is a robust alternative to the MovingAverage filter, and can be used to e.g., track the signal drift or offset in the presence of artifacts. Version 1.0.0
Ports/Properties¶
data¶
Data to process.
- verbose name: Data
- default value: None
- port type: DataPort
- value type: Packet (can be None)
- data direction: INOUT
window_len¶
Window length for median calculation. In seconds.
- verbose name: Window Length
- default value: 1
- port type: FloatPort
- value type: float (can be None)
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
- verbose name: Set Breakpoint (Debug Only)
- default value: False
- port type: BoolPort
- value type: bool (can be None)
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.
- verbose name: Metadata
- default value: {}
- port type: DictPort
- value type: dict (can be None)