maedoc / libtvb

TVB C library
6 stars 8 forks source link

convolution output #122

Closed maedoc closed 8 years ago

maedoc commented 8 years ago

Addresses #86.

maedoc commented 8 years ago

Aha! coverage check is useful.. there is no test of the added functionality.

A good way to test if the convolution is properly implemented would be to use a sinusoidal kernel, filtering a sinusoidal signal, because in that case, we can calculate the exact solution and compare with the output of the convolution. See for example, convolution of sin(x) (filter) with sin(x + t) (signal) is - pi cos(t), as illustrated in this notebook