# colour.utilities.metric_mse¶

colour.utilities.metric_mse(a, b)[source]

Computes the mean squared error (MSE) or mean squared deviation (MSD) between given array_like $$a$$ and $$b$$ variables.

Parameters: a (array_like) – $$a$$ variable. b (array_like) – $$b$$ variable. Mean squared error (MSE). float

References

[Wik03d]

Examples

>>> a = np.array([0.48222001, 0.31654775, 0.22070353])
>>> b = a * 0.9
>>> metric_mse(a, b)  # doctest: +ELLIPSIS
0.0012714...