|
|
| Vector | C | ST | |
in the palette |
on the schematic |
The block implements the operation of selecting an integer part of the input signal. An integer part is understood as the nearest smaller integer (in absolute value). That is, the integer part of a positive number is less than or equal to the number, and the integer part of a negative number is greater than or equal to the number (see
Figure):
Рисунок 1. Demonstration of the block operation
Algorithm for calculating the integer part of the number:
where
y(
t) is the output signal,
u(
t) is the input signal of the block,
Z is the set of integers. In the case of a vector input signal, the block implements the operation of selecting an integer part of each of the elements of the input vector value.
Inputs
- input - input value port.
Outputs
- output - output processed value.
Прим.: dimension of the output signal is always equal to the dimension of the input signal.