Guest
#4249224
Hello, I am trying to do linear regression (approximation) on current samples that I receive from a SINC filter. The SINC filter has a clock of 20MHz and the output(current sample) of the SINC filter block changes every 1.25 MHz. Now I need to use this data (whenever there is new value) to do Linear regression which will have a clock of 160MHz. Can anyone give me an idea on how to do linear regression on the samples only when there is a new data(every 1.25MHz) from the SINC filter block?? To perform linear regression I need to find the average value of samples recursively for which I would need to increment a counter whenever there is new sample and reset to 0 after regression calculation, I also need an idea on how to realise this counter?? I have the VHDL code for recursive averaging, the count is not propererly implemented.