Skip to content

Instantly share code, notes, and snippets.

View jdpigeon's full-sized avatar

Dano Morrison jdpigeon

View GitHub Profile
@jdpigeon
jdpigeon / conv.js
Last active February 27, 2023 08:29 — forked from PhotonEE/conv.js
Javascript implementation of convolution function
/* Returns the discrete, linear convolution of two vectors.
** Convolution in time/space is equivalent to multiplication in the frequency domain.
This function is equivalent to numpy's convolve function with the default 'full' parameter
example :
------
vec1 = [2,3,4]
vec2 = [1,2,3]