5.41. SIGNΒΆ

Purpose

../_images/image1007.png

Purpose

Returns the sign of an input value.

Procedure

At each time step the sign of the input signal is output according to the following scheme:

  • If \(x > 0\) then output = +1.

  • If \(x = 0\) then output = 0.

  • If \(x < 0\) then output = -1.

Parameters

None.

Remarks

None.

Examples

None.