optionVolga.hpp
Go to the documentation of this file.
30 OptionVolga(SmartPointer<OptionGreeks> input, double h, NumDiffScheme scheme, std::string risk_name = "Volga"):
OptionVolga * clone() const
Virtual copy constructor.
Definition: optionVolga.cpp:154
void BwdVolga(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates Volga using backward differencing scheme.
Definition: optionVolga.cpp:121
double h_
Increment used in differencing scheme for volatility direction.
Definition: optionVolga.hpp:43
Definition: cadHoliday.cpp:3
std::string risk_name_
Risk name that will be used as key for result map. Default name is Volga.
Definition: optionVolga.hpp:44
void CntrVolga(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates Volga using central scheme.
Definition: optionVolga.cpp:50
void FwdVolga(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates Volga using forward differencing scheme.
Definition: optionVolga.cpp:85
NumDiffScheme scheme_
Scheme used in differencing.
Definition: optionVolga.hpp:40
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: optionVolga.cpp:38
Interface of option Greeks decorating classes.
Data structure holding the PV and Greeks.
Definition: optionGreeks.hpp:23
File contains small mathematical classes and functions.
Interface for classes decorating Option Greeks.
Definition: optionGreeksDecorator.hpp:15
OptionVolga(SmartPointer< OptionGreeks > input, double h, NumDiffScheme scheme, std::string risk_name="Volga")
Constructor.
Definition: optionVolga.hpp:30
GreeksIntermediateResults calculateRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates the option's Volga.
Definition: optionVolga.cpp:12
NumDiffScheme
collection of enumerations, simple classes and small functions used in mathematical computations ...
Definition: mathUtils.hpp:16