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

#include <qle/termstructures/spreadedsmilesection.hpp>

+ Inheritance diagram for SpreadedSmileSection:
+ Collaboration diagram for SpreadedSmileSection:

Public Member Functions

 SpreadedSmileSection (const QuantLib::ext::shared_ptr< SmileSection > &underlyingSection, const Handle< Quote > &spread)
 
 SpreadedSmileSection (const QuantLib::ext::shared_ptr< QuantLib::SpreadedSmileSection > &underlyingSection)
 

Protected Member Functions

Volatility volatilityImpl (Rate strike) const override
 

Detailed Description

Definition at line 36 of file spreadedsmilesection.hpp.

Constructor & Destructor Documentation

◆ SpreadedSmileSection() [1/2]

SpreadedSmileSection ( const QuantLib::ext::shared_ptr< SmileSection > &  underlyingSection,
const Handle< Quote > &  spread 
)

Definition at line 23 of file spreadedsmilesection.cpp.

25 : QuantLib::SpreadedSmileSection(underlyingSection, spread) {}

◆ SpreadedSmileSection() [2/2]

SpreadedSmileSection ( const QuantLib::ext::shared_ptr< QuantLib::SpreadedSmileSection > &  underlyingSection)

Definition at line 27 of file spreadedsmilesection.cpp.

28 : QuantLib::SpreadedSmileSection(*underlyingSection) {}

Member Function Documentation

◆ volatilityImpl()

Volatility volatilityImpl ( Rate  strike) const
overrideprotected

Definition at line 30 of file spreadedsmilesection.cpp.

30 {
31 Volatility spreadedVol = QuantLib::SpreadedSmileSection::volatilityImpl(k);
32 return std::max(spreadedVol, 0.0);
33}