Filter¶
-
class
neuxus.nodes.filter.
ButterFilter
(input_port, lowcut, highcut, order=4)[source]¶ Bandpass filter for continuous signal
- Attributes:
output: output port
- Args:
input: get DataFrame and meta from input_ port
lowcut (float): lowest frequence cut in Hz
highcut (float): highest frequence cut in Hz
order (int): order to be applied on the butter filter (recommended < 16),
default value is 4
Example: ButterFilter(Port4, 8, 12, order=5)
-
class
neuxus.nodes.filter.
DownSample
(input_port, downsampling_factor)[source]¶ Downsample the signal after applying an anti-aliasing filter
- Attributes:
output (Port): output signal port of sampling frequency / factor
- Args:
input (Port): input signal port
downsampling_factor (int): downsampling factor (recommanded under 13)
- Example:
DownSample(port45, 5)
-
class
neuxus.nodes.filter.
NotchFilter
(input_port, frequency_to_remove, quality_factor)[source]¶ Band-stop filter with a narrow bandwidth (high quality factor). It rejects a narrow frequency band and leaves the rest of the spectrum little changed.
- Attributes:
output: output port
- Args:
input: get DataFrame and meta from input_ port
frequency_to_remove(float): frequency to remove from the signal in Hz
quality_factor(float): Dimensionless parameter that characterizes notch filter -3 dB bandwidth bw relative to its center frequency, Q = frequency_to_remove/bw
- Example:
NotchFilter(Port4, 10, 0.8)