Module: elementwise_math

Elementwise math operations.

These nodes operate on data packets on an element-by-element basis.

Add

Add the data in the first input to the data in the second input (elementwise).

Note that the shape of the arrays must be the same for both data inputs.

Version 1.0.0

Ports/Properties

  • 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)
  • data1
    Input data 1.

    • verbose name: Data1
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • data2
    Input data 2.

    • verbose name: Data2
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • outdata
    Data to process.

    • verbose name: Outdata
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: OUT

Clamp

Clamp each element in the data between a minimum and a maximum.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • min
    Minimum value. Any values in the data that are smaller than this will be replaced by this value.

    • verbose name: Min
    • default value: -1.0
    • port type: FloatPort
    • value type: float (can be None)
  • max
    Maximum value. Any values in the data that are larger than this will be replaced by this value.

    • verbose name: Max
    • default value: 1.0
    • port type: FloatPort
    • value type: float (can be None)

Discretize

Discretize the input data (continuous) through a multi-level threshold function.

Input values that are below a threshold are mapped to a constant value (usually 0.0), and values that are above the threshold are mapped to another constant value (usually 1.0). This can be extended to an unlimited number of threshold levels. The new mapped values just need to contain 1 more value than the given number of threshold levels.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • threshold_cutoffs
    List of threshold values in sequential order. Can be any length.

    • verbose name: Threshold Cutoff Values
    • default value: [0.5]
    • port type: ListPort
    • value type: list (can be None)
  • newvals
    List of mapped values. Values that are smaller than a given threshold will be mapped to the first constant, and values that are larger than or equal to the next threshold will be mapped to the next constant. This list needs to be exactly 1 value longer than the list of threshold cutoff values. Example: threshold cutoff values = [5, 10]; new values = [0, 1, 2]. All data below 5 will now be 0, data between 5 and 10 will now be 1, data greater than 10 will now be 2 .

    • verbose name: New Values
    • default value: [0, 1]
    • port type: ListPort
    • value type: list (can be None)

Divide

Divide the data in the first input by the data in the second input (elementwise).

Note that the shape of the arrays must be the same for both data inputs.

Version 1.0.0

Ports/Properties

  • 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)
  • data1
    Input data 1 (numerator).

    • verbose name: Data1
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • data2
    Input data 2 (denominator).

    • verbose name: Data2
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • outdata
    Data to process.

    • verbose name: Outdata
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: OUT

ElementwiseExpression

Apply a math expression to each element in the data.

The given expression is a string in Python syntax (similar to the syntax in a graphing calculator), where the variable x to refers to the incoming data. The result of this expression is the output data. The regular mathematical functions are available -- for example, "sqrt(x)*2 + x" is allowed. This node is not available in cloud pipelines. Since this operation applies element-wise, the shape of the data array is unchanged. An advanced feature for power users is the support of special one-letter symbols that stand for special vectors that index the axes of the data array. For instance, t is the vector of time points if a time axis is present, f is the vector of frequency values of the frequency axis, i, j, and k are zero-based indices for the instance, feature, and generic axis, respectively, and u, v, w are the three coordinates of the space axis. Note that these variables are only usable when the data has the respective axes. Also, since these are row vectors while the data is an n-dimensional array, it may be necessary to use numpy reshape/transpose operations to yield the desired result (all numpy functions are available, without the need to use the "np." prefix).

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • expression
    Expression to apply. The data is referred to as x. Example: sqrt(x)*2 + x. WARNING: This node is unsafe for use with untrusted strings, i.e., as received from the web.

    • verbose name: Expression
    • default value: x
    • port type: StringPort
    • value type: str (can be None)

Exponent

Exponentiate a constant base given each element in the data.

For each element of the data, the base is raised to a power given by that element.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • base
    Base of the exponent. This base will be raised to a power given by each element of the data. If None is given, Euler's number will be assumed.

    • verbose name: Base
    • default value: None
    • port type: FloatPort
    • value type: float (can be None)

Logarithm

Take the logarithm of each element in the data to some base.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • base
    Base of the logarithm. If None is given, the natural logarithm will be used.

    • verbose name: Base
    • default value: None
    • port type: FloatPort
    • value type: float (can be None)

Magnitude

Take the magnitude of each element in the data.

For complex numbers this will be the complex magnitude, and for real numbers it is the absolute value.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT

Max

Take the maximum of each element in the data and a fixed threshold.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • threshold
    Threshold for maximum computation. Any value in the data that is larger than this will be replaced by this value.

    • verbose name: Threshold
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)

Maximum

Take the elementwise maximum of the data in the first input and the data in the second input.

Note that the shape of the arrays must be the same for both data inputs. Note: the output array will have the same dimension as either input array, and at each position in the output array the value will be the maximum of the corresponding value in the first and the second input.

Version 1.0.0

Ports/Properties

  • 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)
  • data1
    Input data 1.

    • verbose name: Data1
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • data2
    Input data 2.

    • verbose name: Data2
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • outdata
    Data to process.

    • verbose name: Outdata
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: OUT
  • verbose
    Verbose output.

    • verbose name: Verbose
    • default value: True
    • port type: BoolPort
    • value type: bool (can be None)

Min

Take the minimum of each element in the data and a fixed threshold.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • threshold
    Threshold for minimum computation. Any value that is larger than this will be replaced by this value.

    • verbose name: Threshold
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)

Minimum

Take the elementwise minimum of the data in the first input and the data in the second input.

Note that the shape of the arrays must be the same for both data inputs. Note: the output array will have the same dimension as either input array, and at each position in the output array the value will be the minimum of the corresponding value in the first and the second input.

Version 1.0.0

Ports/Properties

  • 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)
  • data1
    Input data 1.

    • verbose name: Data1
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • data2
    Input data 2.

    • verbose name: Data2
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • outdata
    Data to process.

    • verbose name: Outdata
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: OUT

Multiply

Multiply the data in the first input with the data in the second input (elementwise).

Note that the shape of the arrays must be the same for both data inputs.

Version 1.0.0

Ports/Properties

  • 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)
  • data1
    Input data 1.

    • verbose name: Data1
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • data2
    Input data 2.

    • verbose name: Data2
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • outdata
    Data to process.

    • verbose name: Outdata
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: OUT

Negate

Negate each element of the data.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT

OperateConstant

Add, subtract, multiply or divide each element in the data by a given constant.

Skips marker streams.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • constant
    Value by which to perform the selected operation on each element of the data.

    • verbose name: Constant
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)
  • operator
    The operator to be performed on the data using the constant.

    • verbose name: Operator
    • default value: add
    • port type: EnumPort
    • value type: object (can be None)
  • constant_first
    When true, the order of the operation is the constant first, element second, i.e .: constant-element (instead of element-constant). This only affects subtract and divide.

    • verbose name: Constant First
    • default value: False
    • port type: BoolPort
    • value type: bool (can be None)

Phase

Calculate the phase angle of each element in the data.

This is assuming that elements are complex.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT

Power

Raise each element in the data to some power (exponent).

The exponent is a fixed constant.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • power
    Exponent. Every element in the data will be raised to this power.

    • verbose name: Exponent
    • default value: 1.0
    • port type: FloatPort
    • value type: float (can be None)

Power2

Raise each element of the data in the first input to a power that is given by the corresponding element in the second input.

Note that the shape of the arrays must be the same for both data inputs; the output array will have the same dimension as either input array.

Version 1.0.0

Ports/Properties

  • 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)
  • data1
    Input data 1.

    • verbose name: Data1
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • data2
    Input data 2.

    • verbose name: Data2
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • outdata
    Data to process.

    • verbose name: Outdata
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: OUT

Reciprocal

Take the reciprocal (inverse) of each element in the data.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT

ReplaceNans

Replace NaN values in the data by a given value.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • value
    Value to replace NaNs with.

    • verbose name: Value To Replace Nans With
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)

ReplaceNonfinite

Replace NaN values in the data by 0, and Inf/-Inf values by a small/large number.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • max
    Replace Inf by this value. Inf values will be replaced by this, and -Inf values will be replaced by the negative of this value.

    • verbose name: Max
    • default value: 1e+30
    • port type: FloatPort
    • value type: float (can be None)

ReplaceValues

Use the input dictionary to replace the keys with the values of the dictionary in the data.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • mapping
    A dictionary of mapping, e.g ., {np.nan: 0, -1: 10} will replace all nans and -1 in the data by 0 and 10, respectively.

    • verbose name: A Dictionary Of Mapping
    • default value: {}
    • port type: DictPort
    • value type: dict (can be None)

Scaling

Scale each element of the data by a constant factor.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • factor
    Scaling factor. Each element of the data is scaled by this factor.

    • verbose name: Factor
    • default value: 1.0
    • port type: FloatPort
    • value type: float (can be None)

Shift

Add a given value to each element of the data.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • offset
    Shift offset. This is the value that shall be added to every element of the given data.

    • verbose name: Offset
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)

Sigmoid

Apply a sigmoidal (dampening/squashing) transform to each element in the data.

The transform employed here is a generalization of the function y=1/1+exp(-x)), which includes pre-scaling and pre-shift as well as post-scaling and post-shift constants, which can be used to scale and shift the standard sigmoid function graph horizontally and vertically, following the modified formula: y = vshift + scale * (1/(exp(-slope*(x - hshift)))). This function can be used to ensure that the data lie in a given range, without performing a hard thresholding like the Clamp operation. See also the more... link for more information on the unmodified (standard) sigmoid transform.

More Info...

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • hshift
    Shift before sigmoid transform. Shifts the function graph horizontally.

    • verbose name: Hshift
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)
  • vshift
    Shift after sigmoid transform. Shifts the function graph vertically.

    • verbose name: Vshift
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)
  • scale
    Scaling after sigmoid transform. This scales the function graph vertically.

    • verbose name: Scale
    • default value: 1.0
    • port type: FloatPort
    • value type: float (can be None)
  • slope
    Slope of the middle part of the sigmoidal curve. Larger values mean narrower range of squashing. Also the same as scaling before the sigmoid transform. This scales the function graph horizontally.

    • verbose name: Slope
    • default value: 1.0
    • port type: FloatPort
    • value type: float (can be None)

Sign

Take the sign of each element in the data.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT

SquareRoot

Take the square root of each element in the data.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT

Squaring

Square each element in the data.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT

Step

Map the input data through a step function.

Input values that are below a threshold are mapped to one constant value (usually 0.0), and values that are above the threshold are mapped to another constant value (usually 1.0).

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • below_thresh
    Output level below threshold. Input values that are smaller than the threshold will be mapped to this value.

    • verbose name: Value If Below Threshold
    • default value: 1.0
    • port type: FloatPort
    • value type: float (can be None)
  • above_thresh
    Output level above threshold. Input values that are larger than or equal to the threshold will be mapped to this value.

    • verbose name: Value If Above Threshold
    • default value: 0.0
    • port type: FloatPort
    • value type: float (can be None)
  • threshold
    Threshold value. Values that are smaller than the threshold will be mapped to the below-threshold constant, and values that are larger than or equal to the above-threshold constant. Leave empty to perform no thresholding.

    • verbose name: Threshold
    • default value: 0.05
    • port type: FloatPort
    • value type: float (can be None)
  • pass_nan
    If set the nan values will be passed unchanged from input to output data.

    • verbose name: Pass Nan
    • default value: False
    • port type: BoolPort
    • value type: bool (can be None)

Subtract

Subtract the data in the second input from the data in the first input (elementwise).

Note that the shape of the arrays must be the same for both data inputs. This node also assumes that the streams have the same name. The new chunk will keep any metadata or instance data from the first input.

Version 1.0.0

Ports/Properties

  • 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)
  • data1
    Input data 1.

    • verbose name: Data1
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • data2
    Input data 2.

    • verbose name: Data2
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: IN
  • outdata
    Data to process.

    • verbose name: Outdata
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: OUT

ToDecibels

Convert the given quantity to decibels.

Version 1.0.0

Ports/Properties

  • 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)
  • data
    Data to process.

    • verbose name: Data
    • default value: None
    • port type: DataPort
    • value type: Packet (can be None)
    • data direction: INOUT
  • source_measure
    Source measure. Since power values are squared, the conversion formula accounts for that.

    • verbose name: Source Measure
    • default value: power
    • port type: EnumPort
    • value type: object (can be None)