2.1.6.1.10. sf_tools.signal.reweight module

REWEIGHTING CLASSES

This module contains classes for reweighting optimisation implementations

Author:Samuel Farrens <samuel.farrens@gmail.com>
Version:1.3
Date:20/10/2017
class sf_tools.signal.reweight.cwbReweight(weights, thresh_factor=1)[source]

Bases: object

Candes, Wakin and Boyd reweighting class

This class implements the reweighting scheme described in [CWB2007]

Parameters:
  • weights (np.ndarray) – Array of weights
  • thresh_factor (float) – Threshold factor
reweight(data)[source]

Reweight

This method implements the reweighting from section 4 in [CWB2007]

Notes

Reweighting implemented as:

\[w = w \left( \frac{1}{1 + \frac{|x^w|}{n \sigma}} \right)\]