colour.difference.index_stress_Garcia2007#

colour.difference.index_stress_Garcia2007(d_E: FloatingOrArrayLike, d_V: FloatingOrArrayLike) FloatingOrNDArray[source]#

Compute the Kruskal’s Standardized Residual Sum of Squares (:math:`STRESS`) index according to García, Huertas, Melgosa and Cui (2007) method.

Parameters
  • d_E (FloatingOrArrayLike) – Computed colour difference array \(\Delta E\).

  • d_V (FloatingOrArrayLike) – Computed colour difference array \(\Delta V\).

Returns

\(STRESS\) index.

Return type

numpy.floating or numpy.ndarray

References

[GarciaHMC07]

Examples

>>> d_E = np.array([2.0425, 2.8615, 3.4412])
>>> d_V = np.array([1.2644, 1.2630, 1.8731])
>>> index_stress_Garcia2007(d_E, d_V)  
0.1211709...