Skip to content

← elementwise_math package

Clamp

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

Version 1.1.0

Ports/Properties

data

Data to process.

verbose name
Data
default value
None
port type
DataPort
value type
AnyNumeric (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)

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)