Hello Marcus,
Sorry for my vague explanation. I want to write a block which will calculate moving average for a block of samples. I have only one input in this case. I am providing my data serially using vector to stream converter. I want to calculate average of a block of 5 samples.
eg. from vector source {1,2,3,4,5,6,7,8,9,10}, i will get stream of integers.
Now I want to calculate average for first 5 samples i.e. 3 and then it should calculate average of {6,7,8,9,10} which is 8. So i should get desired output as {3,8}.
So I should get output for a block containing 5 samples. It should again consider block of 5 next samples and calculate average.
Please let me what changes do I need to make.
Thanks,
Kunal