Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
NormalSabrSmileSection Class Reference

#include <qle/models/normalsabrsmilesection.hpp>

+ Inheritance diagram for NormalSabrSmileSection:
+ Collaboration diagram for NormalSabrSmileSection:

Public Member Functions

 NormalSabrSmileSection (Time timeToExpiry, Rate forward, const std::vector< Real > &sabrParameters)
 
 NormalSabrSmileSection (const Date &d, Rate forward, const std::vector< Real > &sabrParameters, const DayCounter &dc=Actual365Fixed())
 
Real minStrike () const override
 
Real maxStrike () const override
 
Real atmLevel () const override
 

Protected Member Functions

Real varianceImpl (Rate strike) const override
 
Volatility volatilityImpl (Rate strike) const override
 

Private Attributes

Real alpha_
 
Real nu_
 
Real rho_
 
Real forward_
 

Detailed Description

Definition at line 32 of file normalsabrsmilesection.hpp.

Constructor & Destructor Documentation

◆ NormalSabrSmileSection() [1/2]

NormalSabrSmileSection ( Time  timeToExpiry,
Rate  forward,
const std::vector< Real > &  sabrParameters 
)

Definition at line 27 of file normalsabrsmilesection.cpp.

28 : SmileSection(timeToExpiry, DayCounter(), Normal), forward_(forward) {
29 alpha_ = sabrParams[0];
30 nu_ = sabrParams[1];
31 rho_ = sabrParams[2];
32 // validateSabrParameters(alpha_, 0.0, nu_, rho_);
33}

◆ NormalSabrSmileSection() [2/2]

NormalSabrSmileSection ( const Date &  d,
Rate  forward,
const std::vector< Real > &  sabrParameters,
const DayCounter &  dc = Actual365Fixed() 
)

Definition at line 35 of file normalsabrsmilesection.cpp.

37 : SmileSection(d, dc, Date(), Normal), forward_(forward) {
38 alpha_ = sabrParams[0];
39 nu_ = sabrParams[1];
40 rho_ = sabrParams[2];
41 // validateSabrParameters(alpha_, 0.0, nu_, rho_);
42}

Member Function Documentation

◆ minStrike()

Real minStrike ( ) const
override

Definition at line 37 of file normalsabrsmilesection.hpp.

37{ return -QL_MAX_REAL; }

◆ maxStrike()

Real maxStrike ( ) const
override

Definition at line 38 of file normalsabrsmilesection.hpp.

38{ return QL_MAX_REAL; }

◆ atmLevel()

Real atmLevel ( ) const
override

Definition at line 39 of file normalsabrsmilesection.hpp.

39{ return forward_; }

◆ varianceImpl()

Real varianceImpl ( Rate  strike) const
overrideprotected

Definition at line 44 of file normalsabrsmilesection.cpp.

44 {
45 Volatility vol = normalSabrVolatility(strike, forward_, exerciseTime(), alpha_, nu_, rho_);
46 return vol * vol * exerciseTime();
47}
Real normalSabrVolatility(Rate strike, Rate forward, Time expiryTime, Real alpha, Real nu, Real rho)
Definition: normalsabr.cpp:28
+ Here is the call graph for this function:

◆ volatilityImpl()

Real volatilityImpl ( Rate  strike) const
overrideprotected

Definition at line 49 of file normalsabrsmilesection.cpp.

49 {
50 Real vol = normalSabrVolatility(strike, forward_, exerciseTime(), alpha_, nu_, rho_);
51 return vol;
52}
+ Here is the call graph for this function:

Member Data Documentation

◆ alpha_

Real alpha_
private

Definition at line 46 of file normalsabrsmilesection.hpp.

◆ nu_

Real nu_
private

Definition at line 46 of file normalsabrsmilesection.hpp.

◆ rho_

Real rho_
private

Definition at line 46 of file normalsabrsmilesection.hpp.

◆ forward_

Real forward_
private

Definition at line 46 of file normalsabrsmilesection.hpp.