Calculate a one-dimensional filter along the given axis.
generic_filter1d iterates over the lines of the array, calling the given function at each line. The arguments of the line are the input line, and the output line. The input and output lines are 1D double arrays. The input line is extended appropriately according to the filter size and origin. The output line must be modified in-place with the result.
Parameters: | input : array-like
function : callable
filter_size : scalar
axis : integer, optional
output : array, optional
mode : {‘reflect’,’constant’,’nearest’,’mirror’, ‘wrap’}, optional
cval : scalar, optional
origin : scalar, optional The ``origin`` parameter controls the placement of the filter. Default 0 : extra_arguments : sequence, optional
extra_keywords : dict, optional
|
---|