Returns the discrete, linear convolution of two one-dimensional sequences. Parameters ---------- a, v : array_like Input sequences. mode : {'valid', 'same', 'full'}, optional Refer to the `np.convolve` docstring. propagate_mask : bool If True, then i
(a, v, mode='full', propagate_mask=True)
| 8428 | |
| 8429 | |
| 8430 | def convolve(a, v, mode='full', propagate_mask=True): |
| 8431 | """ |
| 8432 | Returns the discrete, linear convolution of two one-dimensional sequences. |
| 8433 | |
| 8434 | Parameters |
| 8435 | ---------- |
| 8436 | a, v : array_like |
| 8437 | Input sequences. |
| 8438 | mode : {'valid', 'same', 'full'}, optional |
| 8439 | Refer to the `np.convolve` docstring. |
| 8440 | propagate_mask : bool |
| 8441 | If True, then if any masked element is included in the sum for a result |
| 8442 | element, then the result is masked. |
| 8443 | If False, then the result element is only masked if no non-masked cells |
| 8444 | contribute towards it |
| 8445 | |
| 8446 | Returns |
| 8447 | ------- |
| 8448 | out : MaskedArray |
| 8449 | Discrete, linear convolution of `a` and `v`. |
| 8450 | |
| 8451 | See Also |
| 8452 | -------- |
| 8453 | numpy.convolve : Equivalent function in the top-level NumPy module. |
| 8454 | """ |
| 8455 | return _convolve_or_correlate(np.convolve, a, v, mode, propagate_mask) |
| 8456 | |
| 8457 | |
| 8458 | def allequal(a, b, fill_value=True): |
nothing calls this directly
no test coverage detected
searching dependent graphs…