Research Article

Prediction-Based Compensation for Gate On/Off Latency during Respiratory-Gated Radiotherapy

Algorithm 2

Simulation of pRGRT.
(1)for , do
(2)  if , then
(3)   ,
(4)  else
(5)   ,
(6)  end if
(7)end for