Clip

Clips input vector so that all components remain within a given interval

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The input vector u will be clipped to make sure that its components remain within the interval [minValue, maxValue] before it is given as output vector y having the same dimensions.

See also

Functions.clip

Parameters (3)

nin

Value: 2

Type: Integer

Description: Number of input and output signals

minValue

Value: -inf

Type: Real

Description: Minimum value (default = - infinity)

maxValue

Value: inf

Type: Real

Description: Maximum value (default = infinity)

Connectors (2)

u

Type: RealMultiInput[nin]

Description: Input

y

Type: RealMultiOutput[nin]

Description: Output signal