11-28-2017 01:24 PM
Hi,
I have a problem with a VI that's supposed to estimate coefficients of the linear model by recursive least square method. I tried using For loop with Shift register but the results don't correspond with the ones calculated by Excel.
The formula is the following: a(k)=a(k-1)+mu*e(k-1)*x(k-1)
where mu is a constant, e(k-1) - error.
Can you go over the block diagram and point out mistakes?
Thank you
11-28-2017 01:35 PM
can you post the first 20 ints from excel and LV? would be easier to see where problem comes up
11-28-2017 01:47 PM
Here we go
11-28-2017 01:49 PM
@Alzy wrote:
Here we go
Would have been more polite if you attach a txt or excel file with the numbers, so no need to type in the numbers manually 😄
11-28-2017 02:03 PM
Deeply sorry for being foolish . Here is an excel, vi and data.
11-28-2017 02:24 PM
looking at your code now, can you run some thing down while I poke around?