pytrip.models.extra module

Additional tools which are not tied to any particular model.

pytrip.models.extra.lq(dose_x, alpha_x, beta_x)[source]

Linear-quadratic survival model. (LQ-model)

Returns surviving fraction for a given dose, alpha and beta for X-rays.

Params float dose:
 x-ray physical dose in [Gy] (cube or scalar)
Params float alpha_x:
 alpha value for x-rays [Gy^-1] (cube or scalar)
Params float beta_x:
 beta value for x-rays [Gy^-2] (cube or scalar)
pytrip.models.extra.rbe_from_sf(sf_ion, dose_ion, alpha_x, beta_x)[source]

Returns the RBE for given ion survivng fraction and (alpha/beta)x-ray :params float dose: ion physical dose in [Gy] (cube or scalar) :params float sf_ion: surviving fraction in ion beam (cube of scalar) :params float alpha_x: alpha for X-rays in [Gy^-1] (cube or scalar) :params float beta_x: beta for X-rays in [Gy^-2] (cube or scalar)