functionwarnIfPerformanceOutOfBounds
Function that checks the performance and writes a warning if it is outside of 0.9 to 1.1
Information
This function checks if the numeric argument is outside of the interval 0.9 to 1.1. If this is the case, the function writes a warning.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Argument to be checked | |
| String | msg | String to be added to warning message | |
| String | curveName | Name of the curve that was tested |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | retVal | 0 if x is inside bounds, -1 if it is below bounds, or +1 if it is above bounds |
Revisions
-
May 15, 2023, by Michael Wetter:
Changed print statement to an assertion. -
September 12, 2010 by Michael Wetter:
First implementation.