summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python/ccpi/optimisation/algorithms/SIRT.py
diff options
context:
space:
mode:
Diffstat (limited to 'Wrappers/Python/ccpi/optimisation/algorithms/SIRT.py')
-rw-r--r--Wrappers/Python/ccpi/optimisation/algorithms/SIRT.py45
1 files changed, 22 insertions, 23 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/SIRT.py b/Wrappers/Python/ccpi/optimisation/algorithms/SIRT.py
index 50398f4..a59ce5f 100644
--- a/Wrappers/Python/ccpi/optimisation/algorithms/SIRT.py
+++ b/Wrappers/Python/ccpi/optimisation/algorithms/SIRT.py
@@ -35,27 +35,26 @@ class SIRT(Algorithm):
.. math::
- A x = b
- |
-
- Parameters:
-
- :parameter operator : Linear operator for the inverse problem
- :parameter x_init : Initial guess
- :parameter data : Acquired data to reconstruct
- :parameter constraint : Function proximal method
- e.g. x\in[0, 1], IndicatorBox to enforce box constraints
- Default is None).
+ A x = b
+
+ :param x_init: Initial guess
+ :param operator: Linear operator for the inverse problem
+ :param data: Acquired data to reconstruct
+ :param constraint: Function proximal method
+ e.g. :math:`x\in[0, 1]`, :code:`IndicatorBox` to enforce box constraints
+ Default is :code:`None`).
'''
def __init__(self, x_init=None, operator=None, data=None, constraint=None, **kwargs):
'''SIRT algorithm creator
- :param x_init : Initial guess
- :param operator : Linear operator for the inverse problem
- :param data : Acquired data to reconstruct
- :param constraint : Function proximal method
- e.g. x\in[0, 1], IndicatorBox to enforce box constraints
- Default is None).'''
+ Optional parameters:
+
+ :param x_init: Initial guess
+ :param operator: Linear operator for the inverse problem
+ :param data: Acquired data to reconstruct
+ :param constraint: Function proximal method
+ e.g. :math:`x\in[0, 1]`, :code:`IndicatorBox` to enforce box constraints
+ Default is :code:`None`).'''
super(SIRT, self).__init__(**kwargs)
if x_init is not None and operator is not None and data is not None:
@@ -64,12 +63,12 @@ class SIRT(Algorithm):
def set_up(self, x_init, operator, data, constraint=None):
'''initialisation of the algorithm
- :param operator : Linear operator for the inverse problem
- :param x_init : Initial guess
- :param data : Acquired data to reconstruct
- :param constraint : Function proximal method
- e.g. x\in[0, 1], IndicatorBox to enforce box constraints
- Default is None).'''
+ :param x_init: Initial guess
+ :param operator: Linear operator for the inverse problem
+ :param data: Acquired data to reconstruct
+ :param constraint: Function proximal method
+ e.g. :math:`x\in[0, 1]`, :code:`IndicatorBox` to enforce box constraints
+ Default is :code:`None`).'''
print("{} setting up".format(self.__class__.__name__, ))
self.x = x_init.copy()