colour.kernel_linear¶
-
colour.
kernel_linear
(x)[source]¶ Returns the linear kernel evaluated at given samples.
- Parameters
x (array_like) – Samples at which to evaluate the linear kernel.
- Returns
The linear kernel evaluated at given samples.
- Return type
ndarray
References
Examples
>>> kernel_linear(np.linspace(0, 1, 10)) array([ 1. , 0.8888888..., 0.7777777..., 0.6666666..., 0.5555555..., 0.4444444..., 0.3333333..., 0.2222222..., 0.1111111..., 0. ])