QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
HaganIrregularSwaptionEngine::Basket Class Reference

#include <ql/experimental/swaptions/haganirregularswaptionengine.hpp>

+ Collaboration diagram for HaganIrregularSwaptionEngine::Basket:

Public Member Functions

 Basket (ext::shared_ptr< IrregularSwap > swap, Handle< YieldTermStructure > termStructure, Handle< SwaptionVolatilityStructure > volatilityStructure)
 
Array compute (Rate lambda=0.0) const
 
Real operator() (Rate x) const
 
ext::shared_ptr< VanillaSwapcomponent (Size i) const
 
Array weights () const
 
Reallambda () const
 
ext::shared_ptr< IrregularSwapswap () const
 

Private Attributes

ext::shared_ptr< IrregularSwapswap_
 
Handle< YieldTermStructuretermStructure_
 
Handle< SwaptionVolatilityStructurevolatilityStructure_
 
Real targetNPV_ = 0.0
 
ext::shared_ptr< PricingEngineengine_
 
std::vector< RealfairRates_
 
std::vector< Realannuities_
 
std::vector< Dateexpiries_
 
Real lambda_ = 0.0
 

Detailed Description

Definition at line 60 of file haganirregularswaptionengine.hpp.

Constructor & Destructor Documentation

◆ Basket()

Basket ( ext::shared_ptr< IrregularSwap swap,
Handle< YieldTermStructure termStructure,
Handle< SwaptionVolatilityStructure volatilityStructure 
)

Definition at line 38 of file haganirregularswaptionengine.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ compute()

Array compute ( Rate  lambda = 0.0) const

Definition at line 107 of file haganirregularswaptionengine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator()()

Real operator() ( Rate  x) const

Definition at line 167 of file haganirregularswaptionengine.cpp.

+ Here is the call graph for this function:

◆ component()

ext::shared_ptr< VanillaSwap > component ( Size  i) const

Definition at line 181 of file haganirregularswaptionengine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ weights()

Array weights ( ) const

Definition at line 68 of file haganirregularswaptionengine.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lambda()

Real & lambda ( ) const

Definition at line 69 of file haganirregularswaptionengine.hpp.

◆ swap()

ext::shared_ptr< IrregularSwap > swap ( ) const

Definition at line 71 of file haganirregularswaptionengine.hpp.

Member Data Documentation

◆ swap_

ext::shared_ptr<IrregularSwap> swap_
private

Definition at line 73 of file haganirregularswaptionengine.hpp.

◆ termStructure_

Handle<YieldTermStructure> termStructure_
private

Definition at line 74 of file haganirregularswaptionengine.hpp.

◆ volatilityStructure_

Handle<SwaptionVolatilityStructure> volatilityStructure_
private

Definition at line 75 of file haganirregularswaptionengine.hpp.

◆ targetNPV_

Real targetNPV_ = 0.0
private

Definition at line 77 of file haganirregularswaptionengine.hpp.

◆ engine_

ext::shared_ptr<PricingEngine> engine_
private

Definition at line 79 of file haganirregularswaptionengine.hpp.

◆ fairRates_

std::vector<Real> fairRates_
private

Definition at line 81 of file haganirregularswaptionengine.hpp.

◆ annuities_

std::vector<Real> annuities_
private

Definition at line 82 of file haganirregularswaptionengine.hpp.

◆ expiries_

std::vector<Date> expiries_
private

Definition at line 83 of file haganirregularswaptionengine.hpp.

◆ lambda_

Real lambda_ = 0.0
mutableprivate

Definition at line 85 of file haganirregularswaptionengine.hpp.