Skip to content

← signal_processing package

AddNoise

Add noise to the given data.

This adds Gaussian distributed noise to the given data values. This node can be used to test the behavior of various other nodes in the presence of noise. It can also be used as a workaround when the data is linearly dependent and some algorithms run into numerical issues as a result. The noise level is calibrated only on non-streaming (e.g., calibration) chunks. That is, to use this node in a live setting, you will need to use another node to first buffer up some calibration data (e.g., AccumulateCalibrationData), or to load pre-recorded calibration data from a file (InjectCalibrationData). 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

relative_amplitude

Relative noise level. This is the scale of the noise relative to the scale of the data.

verbose name
Relative Amplitude
default value
0.01
port type
FloatPort
value type
float (can be None)

absolute_amplitude

Absolute noise level.

verbose name
Absolute Amplitude
default value
0.0
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)