Midline dose algorithm for in vivo dosimetry.