threshold_operator.py
#
Thresholding operators for POCS algorithm.
These functions are only used when pywavelets
package is not installed (fallback option).
_soft_threshold(data, value, substitute=0)
#
Soft thresholding (from pywavelet
).
Parameters:
-
data
(ndarray
) –Input coefficients.
-
value
(float
) –Threshold value.
-
substitute
(float
, default:0
) –Value to insert for values below threshold (default:
0
).
Returns:
-
ndarray
–Coefficients with applied threshold.
References#
Source code in pseudo_3D_interpolation\functions\threshold_operator.py
_nn_garrote(data, value, substitute=0)
#
Non-negative Garrote thresholding (from pywavelet
).
Parameters:
-
data
(ndarray
) –Input coefficients.
-
value
(float
) –Threshold value.
-
substitute
(float
, default:0
) –Value to insert for values below threshold (default:
0
).
Returns:
-
ndarray
–Coefficients with applied threshold.
References#
Source code in pseudo_3D_interpolation\functions\threshold_operator.py
_hard_threshold(data, value, substitute=0)
#
Hard thresholding (from pywavelet
).
Parameters:
-
data
(ndarray
) –Input coefficients.
-
value
(float
) –Threshold value.
-
substitute
(float
, default:0
) –Value to insert for values below threshold (default:
0
).
Returns:
-
ndarray
–Coefficients with applied threshold.
References#
Source code in pseudo_3D_interpolation\functions\threshold_operator.py
Last update:
Monday, 03 July 2023 at 09:46:51