Abstract base class for all kernels. More...
#include <Kernels.h>
Public Member Functions | |
| Kernel (double width) | |
| virtual | ~Kernel () |
| Virtual destructor (allow destruction of base Kernel pointer) | |
| virtual T | operator() (double x) const =0 |
| Evaluate kernel at given location in [-halfwidth, halfwidth]. | |
| double | width () const |
| Get width of kernel. More... | |
Protected Attributes | |
| double | _halfwidth |
Abstract base class for all kernels.
Basically just a closure around an arbitrary function and a width property. Template parameter T defines type for coefficients, typically float or double.
|
inline |
Get width of kernel.
Units are the same as are used for calls to operator().
1.8.5.