optionVega.hpp
  
Go to the documentation of this file.
   29     OptionVega(SmartPointer<OptionGreeks> input,double h, NumDiffScheme scheme, std::string risk_name = "Vega"):
void CntrVega(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates Vega using central differencing scheme. 
Definition: optionVega.cpp:40
Definition: cadHoliday.cpp:3
void BwdVega(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates Vega using backward differencing scheme. 
Definition: optionVega.cpp:98
GreeksIntermediateResults calculateRisks(const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
calculates the option's Vega 
Definition: optionVega.cpp:14
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: optionVega.cpp:123
OptionVega * clone() const 
virtual copy constructor 
Definition: optionVega.cpp:131
Interface of option Greeks decorating classes. 
Data structure holding the PV and Greeks. 
Definition: optionGreeks.hpp:23
NumDiffScheme scheme_
Scheme used in differencing. 
Definition: optionVega.hpp:44
File contains small mathematical classes and functions. 
OptionVega(SmartPointer< OptionGreeks > input, double h, NumDiffScheme scheme, std::string risk_name="Vega")
Constructor. 
Definition: optionVega.hpp:29
Interface for classes decorating Option Greeks. 
Definition: optionGreeksDecorator.hpp:15
NumDiffScheme
collection of enumerations, simple classes and small functions used in mathematical computations ...
Definition: mathUtils.hpp:16
void FwdVega(GreeksIntermediateResults &rr, const SmartPointer< MarketModel > &model, const SmartPointer< PricingEngine > &prizer, const SmartPointer< Option > &option)
Calculates Vega using forward differencing scheme. 
Definition: optionVega.cpp:71
std::string risk_name_
Risk name that will be used as key for result map. Default name is Vega. 
Definition: optionVega.hpp:45
          
          
 1.8.11