sigpy.soft_thresh

sigpy.soft_thresh(lamda, input)[source]

Soft threshold.

Performs:

\[(| x | - \lambda)_+ \text{sgn}(x)\]
Parameters:
  • lamda (float, or array) – Threshold parameter.
  • input (array) –
Returns:

soft-thresholded result.

Return type:

array