optionDelta.hpp
Go to the documentation of this file.
27 OptionDelta(SmartPointer<OptionGreeks> input, double h, NumDiffScheme scheme, std::string risk_name = "Delta"):
Definition: cadHoliday.cpp:3
double h_
Increment used in differencing scheme.
Definition: optionDelta.hpp:54
void BwdDelta(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates delta using backward differencing scheme.
Definition: optionDelta.cpp:105
OptionDelta * clone() const
Virtual copy constructor.
Definition: optionDelta.cpp:129
std::map< std::string, double > getRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
returns the PV and Greek parameter
Definition: optionDelta.cpp:35
OptionDelta(SmartPointer< OptionGreeks > input, double h, NumDiffScheme scheme, std::string risk_name="Delta")
Constructor.
Definition: optionDelta.hpp:27
void CntrDelta(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates delta using central differencing scheme.
Definition: optionDelta.cpp:47
Interface of option Greeks decorating classes.
Data structure holding the PV and Greeks.
Definition: optionGreeks.hpp:23
void FwdDelta(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates delta using forward differencing scheme.
Definition: optionDelta.cpp:78
File contains small mathematical classes and functions.
GreeksIntermediateResults calculateRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates the option's delta.
Definition: optionDelta.cpp:13
NumDiffScheme scheme_
Scheme used in differencing.
Definition: optionDelta.hpp:55
Interface for classes decorating Option Greeks.
Definition: optionGreeksDecorator.hpp:15
std::string risk_name_
Risk name that will be used as key for result map. Default name is Delta.
Definition: optionDelta.hpp:56
NumDiffScheme
collection of enumerations, simple classes and small functions used in mathematical computations ...
Definition: mathUtils.hpp:16