discrete-time transfer function applied to vector data

[sim,out] = ld_VarVec_ztf(sim, events, in, Nvalues, H, FilterMode, vecsize)

FilterMode == 1 apply filter from left to right

FilterMode == 2 apply filter from right to left

FilterMode == 3 apply filter from left to right, flip result, filter from right to left (zero phase-shift filter)

H is a transfer function in z-domain represented by a scilab rational

in (float, vecsize) - vector input

out (float, vecsize) - vector output

Nvalues (int32) - the number of samples the filter is applied to (starting from the left side of the vector)