I'm not entirely sure this question belongs here. (Maybe better suited on stackoverflow or theoretical computer science). But here it goes.
I'm reading a paper called. "Time-Frequency Analysis of Heart-Rate Variability". In this paper they discuss a new algorithm to automatically remove artifacts from a signal. The pseudoalgrithm is given:
This is all the information. I was wondering if someone could explain me this (or give his opinion): They do not explicitly explain what a step is, though I assume it is a step of the loop. They say the $u_n$ and $u_m$ depend on deviation of last STEP HR values. My interpretation of these values are that they are the deviation of the previous values which were already accepted.
Though the problem with this interpretation is that at the start there will only be one value which is accepted which is the intial value, so this means that the second value will be discarded since the deviation will be 0.
I was wondering if someone had another take on this, or a better explanation, because the paper does not give more information than this on the algorithm.