colour.characterisation.polynomial_expansion_Vandermonde#

colour.characterisation.polynomial_expansion_Vandermonde(a: ArrayLike, degree: int = 1) NDArrayFloat[source]#

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

Parameters:
  • a (ArrayLike) – \(a\) array to expand.

  • degree (int) – Expanded polynomial degree.

Returns:

Expanded \(a\) array.

Return type:

numpy.ndarray

References

[Wikipedia03f]

Examples

>>> RGB = np.array([0.17224810, 0.09170660, 0.06416938])
>>> polynomial_expansion_Vandermonde(RGB)  
array([ 0.1722481 ,  0.0917066 ,  0.06416938,  1.        ])