Skip to main content
. Author manuscript; available in PMC: 2012 Nov 1.
Published in final edited form as: Conf Proc IEEE Eng Med Biol Soc. 2011;2011:116–119. doi: 10.1109/IEMBS.2011.6089910

Algorithm 1.

Closed-Loop Sampling General Algorithm

input : A set of samples (i, v̂i) with (i = 1…3)
output: tmin, A number of samples m (with m ≥ 3)
repeat
 find tmin = in f j ∈ J j;
if tmints > Tmax then
  ts = ts + Tmax;
else
  if tmints < Tmin then
   ts = ts + Tmin;
  else
   ts = tmin;
  end
end
 Take a new sample at time ts;
until tmin > ts;