limiter

Parameters

Parameter label

I/O type

Data type

Mandatory parameter?

Default value

inputVec

input

vector

yes

N/A

outputVec

output

vecotr

N/A

N/A

min

input

scalar

N/A

N/A

max

input

scalar

N/A

N/A

Functionality

Module returns the elements in inputVec as outputVec while substituting values greater than max with max and values smaller than min with min. Either parameter is optional, if both values are missing, the module functions as identity transformation. Here’s a simple example:

inputVec = [1,-2,-3,-4]
max = 0
min = -3
...
outputVec = [0, -2, -3, -3]