MATLAB Answers

Is the meanError returned by pcfitplane() "mean error" or "mean square error"?

8 views (last 30 days)
TeMei Wang
TeMei Wang on 26 May 2020
Answered: Monisha Nalluru on 10 Jul 2020 at 13:02
On the help page of pcfitplane(), the returned meanError is explained as "mean square error (MSE)". In my test, the returned meanError is 0.0042. If it is MSE, the RMSE (root mean square error) is 0.065 (meters). This is unreasonable because the maxDistance is set to 0.05 (meters). The RMSE shouldn't be larger than the maxDistance (the max distance from an inlier point to the plane). If the returned meanError is interpreted as "mean error" (0.0042 meters), it seems to be more consistent to the plot. My code and data are attached for reference.

  0 Comments

Sign in to comment.

Answers (1)

Monisha Nalluru
Monisha Nalluru on 10 Jul 2020 at 13:02
It’s true that the documentation of pcfitplane clearly states that the function returns mean error as one of output argument.
But from BestFitPlane.m, it looks like you are trying to calculate the root mean squared error from mean error by applying square root operation. This may not be a proper way to calculate root mean squared error.
You can refer to this link for information on root mean squared error
You can refer to this link for more information on mean error or mean standard error

  0 Comments

Sign in to comment.

Tags

Products


Release

R2019b