hello everyone;
i'm trying to implement lattice FIR filter and RII lattice filter in c.
my question is how to make the first g(n-1), some one can help me please! i know that z-1 represente a delay time so how can i program it ?, I thought to take each time the previous sampler, but it will not work for the first samples because we will have negative values
you can find the algorithm here
https://www.keil.com/pack/doc/CMSIS/DSP/html/group__FIR__Lattice.html