calculate the root mean square error between two signals
calculate the relative root mean square error between two signals
RootMeanSquareError( X, Y )
RelativeRootMeanSquareError( X, Y )
rtables or lists of numeric data.
The RootMeanSquareError command takes two rtables or lists of numeric data with compatible dimensions, and returns the Root Mean Square Error (RMSE), which is the Root Mean Square (RMS) of the difference of X and Y. When X and Y are Vectors with n elements:
The RelativeRootMeanSquareError command takes two rtables or lists of numeric data with compatible dimensions, and returns the Relative Root Mean Square Error (RRMSE), which is the Root Mean Square (RMS) of the difference of X and Y, divided by the RMS of Y. When X and Y are Vectors with n elements:
The advantage of using RRMSE over RMSE to quantify error is that the error is relative to the comparison container, which prevents relatively small errors from appearing large, and relatively large errors from appearing small.
The inputs are converted to Arrays of float or complex datatype, and an error will be thrown if this is not possible. For this reason, it is most efficient for the inputs to already be rtables having the appropriate datatypes.
The RelativeRootMeanSquareError and RootMeanSquareError commands are not thread safe.
As the underlying implementation of the SignalProcessing package is a module, it is also possible to use the forms SignalProcessing:-RootMeanSquareError and SignalProcessing:-RelativeRootMeanSquareError to access the commands from the package. For more information, see Module Members.
In this example, the RMSE suggests two Vectors are very close (in the absolute sense), but the RRMSE shows that to not be the case (in the relative sense):
Here, the RMSE suggests two Vectors are not very close (in the absolute sense), but the RRMSE shows the Vectors are in fact pretty close (in the relative sense):
The SignalProcessing[RootMeanSquareError] and SignalProcessing[RelativeRootMeanSquareError] commands were introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document
What kind of issue would you like to report? (Optional)