SignalProcessing
RootMeanSquareError
calculate the root mean square error between two signals
RelativeRootMeanSquareError
calculate the relative root mean square error between two signals
Calling Sequence
Parameters
Description
Examples
Compatibility
RootMeanSquareError( X, Y )
RelativeRootMeanSquareError( X, Y )
X, Y
-
rtables or lists of real or complex data.
The RootMeanSquareError command takes two rtables or lists of data with compatible dimensions, and returns the Root Mean Square Error (RMSE), which is the Root Mean Square (RMS) of the difference of and . When and are Vectors with elements:
The RelativeRootMeanSquareError command takes two rtables or lists of data with compatible dimensions, and returns the Relative Root Mean Square Error (RRMSE), which is the Root Mean Square (RMS) of the difference of and , divided by the RMS of . When and are Vectors with 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[8] or complex[8] 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.
Example 1
Example 2
Example 3
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):
Example 4
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):
Example 5
Complex data is also supported:
The SignalProcessing[RootMeanSquareError] and SignalProcessing[RelativeRootMeanSquareError] commands were introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
The SignalProcessing[RootMeanSquareError] and SignalProcessing[RelativeRootMeanSquareError] commands were updated in Maple 2022.
See Also
SignalProcessing[Norm]
SignalProcessing[RootMeanSquare]
Download Help Document