Scicos Block

QUANT_f - Scicos Quantization block

Description

This block outputs the quantization of the input according to a choice of methods

for Round method

y(i)=Step*(int(u(i)/Step+0.5)-0.5) if u(i)<0.

y(i)=Step*(int(u(i)/Step-0.5)+0.5). if u(i)>=0.

For truncation method

y(i)=Step*(int(u(i)/Step+0.5)) if u(i)<0.

y(i)=Step*(int(u(i)/Step-0.5)) if u(i)>=0.

For floor method

y(i)=Step*(int(u(i)/Step+0.5)) .

For ceil method

y(i)=Step*(int(u(i)/Step-0.5)) .

DIALOGUE PARAMETERS