aspen.processings.declip

Declip

Functions

declip(x[, thres])

Declip a signal if saturated.

Classes

Declip([declip_thres])

Declip a signal if saturated.

class aspen.processings.declip.Declip(declip_thres=1.0)[source]

Bases: aspen.interfaces.abs_common_interface.AbsCommonInterface, aspen.interfaces.abs_processing_interface.AbsProcessingInterface

Declip a signal if saturated.

Parameters

declip_thres (float) – The threshold whether the signal is saturated or not. Defaults to 1.0.

__call__(x)[source]

Apply declip

Parameters

x (ndarray) – Input signal

Return type

ndarray

Returns

Output signal

static add_arguments(parser)[source]

add arguments

classmethod load_class_kwargs(args)

Return the kwargs dict for class __init__ from parsed arguments

Parameters

args (Namespace) – (config)argparse arguments

Return type

dict

Returns

kwargs for class __init__

aspen.processings.declip.declip(x, thres=1.0)[source]

Declip a signal if saturated.

Parameters
  • x (ndarray) – Input signal

  • thres (float) – The threshold whether the signal is saturated or not. Defaults to 1.0.

Return type

ndarray

Returns

Output signal