Package enrichpy :: Module padconvolve

Module padconvolve

source code

Routines to pad convolution to control the centering of the kernel.
Functions
 
pad(x, klength, origin=0, value=0.0)
Pad an array that is going to be convolved.
source code
 
padded_convolve(x, kernel, origin=0, value=0.0)
Convolve an array with padding.
source code
Variables
  __package__ = 'enrichpy'
Function Details

pad(x, klength, origin=0, value=0.0)

source code 

Pad an array that is going to be convolved.

Set origin to zero to have only positive delays. Set origin to klength-1 to have entirely negative delays. Set origin to the center of the kernel for centering on zero delay.

Parameters

klength: scalar
Length of the kernel.
origin: scalar
The index of the kernel value you want at the origin (default 0).
value: scalar
Value to pad the array with (default 0).

padded_convolve(x, kernel, origin=0, value=0.0)

source code 

Convolve an array with padding.

See docstring for pad for more info.