Skip to content

Commit

Permalink
Update optionGreeks.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndskg authored Jan 7, 2024
1 parent cceb8fe commit cc8821e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/optionGreeks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#include "../include/black-scholes-cpp/blackScholesModel.h"


// ----------------------------------------------------------------------------
// "optionGreeks" Class Member Function Implementations
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------------
// "optionGreeks" Class Member Function Implementations
// ----------------------------------------------------------------------------------------------

/*------------------------------ CONSTRUCTORS ------------------------------*/
/*--------------------------------------- CONSTRUCTORS ---------------------------------------*/
// Default constructor.
optionGreeks::optionGreeks() {
d1_ = getD1();
Expand Down Expand Up @@ -44,7 +44,7 @@ optionGreeks::optionGreeks(double underlyingPrice, double strikePrice, double ti
} // optionGreeks ctor


/*-------------------------- KEY MEMBER FUNCTIONS --------------------------*/
/*----------------------------------- KEY MEMBER FUNCTIONS -----------------------------------*/

// TODO: IMPLEMENT CALCULATEIV??

Expand Down Expand Up @@ -112,7 +112,7 @@ double optionGreeks::calculateRho() const {
} // calculateRho()


/*-------------------------- SETTER METHODS --------------------------*/
/*----------------------------------- SETTER METHODS --------------------------------------*/

// Setter method for the Delta value of option Greeks.
void optionGreeks::setDelta(const double& value) const {
Expand Down Expand Up @@ -144,7 +144,7 @@ void optionGreeks::setRho(const double& value) const {
} // setRho()


/*-------------------------- GETTER METHODS --------------------------*/
/*------------------------------------ GETTER METHODS --------------------------------------*/

// Getter method for the Delta value of option Greeks.
const double& optionGreeks::getDelta() const {
Expand Down

0 comments on commit cc8821e

Please sign in to comment.