pyanno4rt.optimization.projections
Projections module.
This module aims to provide methods and classes for different types of forward and backward projections between fluence and dose.
Overview
Backprojection superclass. |
|
Constant RBE projection class. |
|
Dose projection class. |
- |
Classes
- class pyanno4rt.optimization.projections.BackProjection[source]
Backprojection superclass.
This class provides caching attributes, methods to get/compute the dose and the fluence gradient, and abstract methods to implement projection rules within the inheriting classes.
- __dose__
Current (cached) dose vector.
- Type:
ndarray
- __dose_gradient__
Current (cached) dose gradient.
- Type:
ndarray
- __fluence__
Current (cached) fluence vector.
- Type:
ndarray
- __fluence_gradient__
Current (cached) fluence gradient.
- Type:
ndarray
Overview
Methods compute_dose(fluence)Compute the dose vector from the fluence and update the cache.
compute_fluence_gradient(dose_gradient)Compute the fluence gradient from the dose gradient and update the cache.
get_dose()Get the dose vector.
Get the fluence gradient.
compute_dose_result(fluence)abc Compute the dose projection from the fluence vector.
compute_fluence_gradient_result(dose_gradient)abc Compute the fluence gradient projection from the dose gradient.
Members
- compute_dose(fluence)[source]
Compute the dose vector from the fluence and update the cache.
- Parameters:
fluence (ndarray) – Values of the fluence vector.
- Returns:
Values of the dose vector.
- Return type:
ndarray
- compute_fluence_gradient(dose_gradient)[source]
Compute the fluence gradient from the dose gradient and update the cache.
- Parameters:
dose_gradient (ndarray) – Values of the dose gradient.
- Returns:
Values of the fluence gradient.
- Return type:
ndarray
- get_fluence_gradient()[source]
Get the fluence gradient.
- Returns:
Values of the fluence gradient.
- Return type:
ndarray
- class pyanno4rt.optimization.projections.ConstantRBEProjection[source]
Bases:
pyanno4rt.optimization.projections.BackProjectionConstant RBE projection class.
This class provides an implementation of the abstract forward and backward projection methods in
Backprojectionby a linear function with a constant RBE value of 1.1.Overview
Methods compute_dose_result(fluence)Compute the dose projection from the fluence vector.
compute_fluence_gradient_result(dose_gradient)Compute the fluence gradient projection from the dose gradient.
Members
- class pyanno4rt.optimization.projections.DoseProjection[source]
Bases:
pyanno4rt.optimization.projections.BackProjectionDose projection class.
This class provides an implementation of the abstract forward and backward projection methods in
Backprojectionby a linear function with a neutral RBE value of 1.0.Overview
Methods compute_dose_result(fluence)Compute the dose projection from the fluence vector.
compute_fluence_gradient_result(dose_gradient)Compute the fluence gradient projection from the dose gradient.
Members
Attributes
- pyanno4rt.optimization.projections.projection_map