-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update volatility constants and enhance test coverage
The volatility constant values have been adjusted for intrinsic and maximum price signals. Specifically, they have been replaced with negative and positive infinity respectively. Additionally, comprehensive test coverage has been added to ensure correct pricing using different scenarios, such as at-the-money, in-the-money, and out-of-the-money for call and put options, and using randomized values. A dependency to the 'rand' library was also added to handle generation of random values in tests.
- Loading branch information
1 parent
84e7626
commit 9eebe0e
Showing
3 changed files
with
104 additions
and
21 deletions.
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
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
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