Hello please can anyone help me to calculate the following
I have a result which give M which give a row of numbers
I want to calculate the formular
H{j} = (1 – 0.5) * H{j-1} + (0.5 * M)
assuming the first H{0} = 0
j = 0,1,2,3,4,5,6 and M = 0.3 ,0.2, 0.4, 0.5, 0.6, 0.8
how do i write the code
Your help will be greatly appreciated
Best Answer