-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the limit adjustment logic and add safety checks
If limits are calculated for f64 data that uses a RAT_FUNC compu method, then the ration function will be applied to the input values f64::MIN and f64::MAX. In this situation it is essential to divide first and then multiply. Even then the result can be +/-INF, so a safety check has been added.
- Loading branch information
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters