Research Article

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

Algorithm 1

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