colour.characterisation.polynomial_expansion_Vandermonde

colour.characterisation.polynomial_expansion_Vandermonde(a, degree=1)[source]

Performs polynomial expansion of given \(a\) array using Vandermonde method.

Parameters:
  • a (array_like) – \(a\) array to expand.
  • degree (int, optional) – Expanded polynomial degree.
Returns:

Expanded \(a\) array.

Return type:

ndarray

References

[Wikipedia2003e]

Examples

>>> RGB = np.array([0.17224810, 0.09170660, 0.06416938])
>>> polynomial_expansion_Vandermonde(RGB)  # doctest: +ELLIPSIS
array([ 0.1722481 ,  0.0917066 ,  0.06416938,  1.        ])