2.1.6.1.8. sf_tools.signal.proximity module¶
PROXIMITY OPERATORS
This module contains classes of proximity operators for optimisation
Author: | Samuel Farrens <samuel.farrens@gmail.com> |
---|---|
Version: | 1.3 |
Date: | 19/07/2017 |
-
class
sf_tools.signal.proximity.
Positive
[source]¶ Bases:
object
Positivity proximity operator
This class defines the positivity proximity operator
-
class
sf_tools.signal.proximity.
Threshold
(weights, thresh_type='soft')[source]¶ Bases:
object
Threshold proximity operator
This class defines the threshold proximity operator
Parameters: - weights (np.ndarray) – Input array of weights
- thresh_type (str {'hard', 'soft'}, optional) – Threshold type (default is ‘soft’)
-
class
sf_tools.signal.proximity.
LowRankMatrix
(thresh, thresh_type='soft', lowr_type='standard', operator=None)[source]¶ Bases:
object
Low-rank proximity operator
This class defines the low-rank proximity operator
Parameters: - thresh (float) – Threshold value
- treshold_type (str {'hard', 'soft'}) – Threshold type (options are ‘hard’ or ‘soft’)
- lowr_type (str {'standard', 'ngole'}) – Low-rank implementation (options are ‘standard’ or ‘ngole’)
- operator (class) – Operator class (‘ngole’ only)
-
class
sf_tools.signal.proximity.
ProximityCombo
(operators)[source]¶ Bases:
object
Proximity Combo
This class defines a combined proximity operator
Parameters: operators (list) – List of proximity operator class instances
-
class
sf_tools.signal.proximity.
SubIter
(data_shape, operator, weights=None, u_init=None)[source]¶ Bases:
object
Sub iteration operator
This class defines the sub-iteration proximity operator
Parameters: - data_shape (tuple) – Shape of input data array
- operator (class) – Proximity operator class
- weights (np.ndarray) – Array of weights
- u_init (np.ndarray) – Initial estimate of u