in vitalsign application, we get smoothing in the following code:
original) heartWfmOutUpdated = (obj->alpha_heart) * (outputFilterHeartOut * outputFilterHeartOut) + (1 - (obj->alpha_heart)) * heartWfmOutPrev; // Exponential Smoothing
---> Isn't it should be changed like the followings? Exponential smoothing actually
output_t = 0.5* Xt + 0.95* output_t-1 . (st = αxt+(1 – α)st-1= st-1+ α(xt – st-1)
But in code data_path.c or main.c (recent version) is using (Xt)**2 instead of (Xt).
Are there any reason for this?
correction) heartWfmOutUpdated = (obj->alpha_heart) * (outputFilterHeartOut ) + (1 - (obj->alpha_heart)) * heartWfmOutPrev; // Exponential Smoothing
Actually original one and corrected one looks fine when I plotted.
Thanks for your answer in advance,
kisub