modelErrors_AbsRelRMSold

Calculation of absolute, relative, and rms errors

Extends from TRANSFORM.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

Information

Note: If abs(x_2[i]) <= eps then the relative error is simply x_1[i].


This model is obsolete because it has some issue with a passedTest varaible regardless of if its boolean or real depending on the errorExpected value.

Moved to a function to remove issue.

Parameters

TypeNameDefaultDescription
IntegernLength of variable vector
RealerrorExpected1e-6if Error_rms < errorExpected then test = Passed
Realtolerance100eps = tolerance*MachineError to avoid division by 0

Components

TypeNameDefaultDescription
Realx_1Values of first variable
Realx_2Values of second variable
BooleanpassedTestif false then expected and actual values to not match within the expected error
RealError_rmsRoot Mean Square error sqrt(sum(Error_abs.^2)/n)
RealError_absAbsolute error (x_1 - x_2)
Units.NonDimError_relRelative error (x_1 - x_2)/x_2