colour.characterisation.polynomial_expansion_Vandermonde#

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

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

Parameters:
  • a (ArrayLike) – Array \(a\) to expand using polynomial expansion.

  • degree (int) – Degree of the expanded polynomial.

Returns:

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