colour.kernel_lanczos

colour.kernel_lanczos(x, a=3)[source]

Returns the lanczos kernel evaluated at given samples.

Parameters
  • x (array_like) – Samples at which to evaluate the lanczos kernel.

  • a (int, optional) – Size of the lanczos kernel.

Returns

The lanczos kernel evaluated at given samples.

Return type

ndarray

References

[Wikipedia05c]

Examples

>>> kernel_lanczos(np.linspace(0, 1, 10))  
array([  1.0000000...e+00,   9.7760615...e-01,   9.1243770...e-01,
         8.1030092...e-01,   6.8012706...e-01,   5.3295773...e-01,
         3.8071690...e-01,   2.3492839...e-01,   1.0554054...e-01,
         3.2237621...e-17])