colour.kernel_linear#

colour.kernel_linear(x: ArrayLike) numpy.ndarray[source]#

Return the linear kernel evaluated at given samples.

Parameters

x (ArrayLike) – Samples at which to evaluate the linear kernel.

Returns

The linear kernel evaluated at given samples.

Return type

numpy.ndarray

References

[BB09]

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.        ])