Kernel generating functions.
AUTHORS:
Get a Gaussian distribution that sums to 1 along 1 dimension, quantized by discrete steps.
Make a rectangle (really a vector) that has a particular length.
| Parameters: | window – Length of the kernel, in ms. A value of zero (default), will still make a kernel of len == 1, corresponding to 1 time interval value, and filtering with such a kernel will yield the input. |
|---|
Note
A time window of 5 ms, say, will be different depending on the value of dt. If dt == 1, then the kernel will range from [-2,2] across 5 values. If dt == 0.1, then the kernel will range from [-2.5, 2.5] across 51 values.
Make a ramp from 0 to 1 back to 0 again by dt.
| Parameters: |
|
|---|