# root_mean_square_error¶

menpofit.error.root_mean_square_error(shape, gt_shape)[source]

Computes the root mean square error between two shapes, i.e.

$\sqrt{\frac{1}{N}\sum_{i=1}^N(s_i-s^*_i)^2}$

where $$s_i$$ and $$s^*_i$$ are the coordinates of the $$i$$’th point of the final and ground truth shapes, and $$N$$ is the total number of points.

Parameters
• shape (menpo.shape.PointCloud) – The input shape (e.g. the final shape of a fitting procedure).

• gt_shape (menpo.shape.PointCloud) – The ground truth shape.

Returns

root_mean_square_error (float) – The root mean square error.