colour.colorimetry.lagrange_coefficients_ASTME2022#

colour.colorimetry.lagrange_coefficients_ASTME2022(interval: int = 10, interval_type: Literal['Boundary', 'Inner'] | str = 'Inner') NDArrayFloat[source]#

Compute the Lagrange Coefficients for given interval size using practise ASTM E2022-11 method.

Parameters:
  • interval (int) – Interval size in nm.

  • interval_type (Literal['Boundary', 'Inner'] | str) – If the interval is an inner interval Lagrange Coefficients are computed for degree 4. Degree 3 is used for a boundary interval.

Returns:

Lagrange Coefficients.

Return type:

numpy.ndarray

References

[ASTMInternational11]

Examples

>>> lagrange_coefficients_ASTME2022(10, "inner")
... 
array([[-0.028...,  0.940...,  0.104..., -0.016...],
       [-0.048...,  0.864...,  0.216..., -0.032...],
       [-0.059...,  0.773...,  0.331..., -0.045...],
       [-0.064...,  0.672...,  0.448..., -0.056...],
       [-0.062...,  0.562...,  0.562..., -0.062...],
       [-0.056...,  0.448...,  0.672..., -0.064...],
       [-0.045...,  0.331...,  0.773..., -0.059...],
       [-0.032...,  0.216...,  0.864..., -0.048...],
       [-0.016...,  0.104...,  0.940..., -0.028...]])
>>> lagrange_coefficients_ASTME2022(10, "boundary")
... 
array([[ 0.85...,  0.19..., -0.04...],
       [ 0.72...,  0.36..., -0.08...],
       [ 0.59...,  0.51..., -0.10...],
       [ 0.48...,  0.64..., -0.12...],
       [ 0.37...,  0.75..., -0.12...],
       [ 0.28...,  0.84..., -0.12...],
       [ 0.19...,  0.91..., -0.10...],
       [ 0.12...,  0.96..., -0.08...],
       [ 0.05...,  0.99..., -0.04...]])