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

SABR interpolation factory and traits More...

#include <qle/models/normalsabrinterpolation.hpp>

+ Collaboration diagram for NormalSABR:

Public Member Functions

 NormalSABR (Time t, Real forward, Real alpha, Real nu, Real rho, bool alphaIsFixed, bool nuIsFixed, bool rhoIsFixed, bool vegaWeighted=false, const QuantLib::ext::shared_ptr< EndCriteria > endCriteria=QuantLib::ext::shared_ptr< EndCriteria >(), const QuantLib::ext::shared_ptr< OptimizationMethod > optMethod=QuantLib::ext::shared_ptr< OptimizationMethod >(), const Real errorAccept=0.0002, const bool useMaxError=false, const Size maxGuesses=50)
 
template<class I1 , class I2 >
Interpolation interpolate (const I1 &xBegin, const I1 &xEnd, const I2 &yBegin) const
 

Static Public Attributes

static const bool global = true
 

Private Attributes

Time t_
 
Real forward_
 
Real alpha_
 
Real nu_
 
Real rho_
 
bool alphaIsFixed_
 
bool nuIsFixed_
 
bool rhoIsFixed_
 
bool vegaWeighted_
 
const QuantLib::ext::shared_ptr< EndCriteria > endCriteria_
 
const QuantLib::ext::shared_ptr< OptimizationMethodoptMethod_
 
const Real errorAccept_
 
const bool useMaxError_
 
const Size maxGuesses_
 

Detailed Description

SABR interpolation factory and traits

Definition at line 155 of file normalsabrinterpolation.hpp.

Constructor & Destructor Documentation

◆ NormalSABR()

NormalSABR ( Time  t,
Real  forward,
Real  alpha,
Real  nu,
Real  rho,
bool  alphaIsFixed,
bool  nuIsFixed,
bool  rhoIsFixed,
bool  vegaWeighted = false,
const QuantLib::ext::shared_ptr< EndCriteria >  endCriteria = QuantLib::ext::shared_ptr<EndCriteria>(),
const QuantLib::ext::shared_ptr< OptimizationMethod optMethod = QuantLib::ext::shared_ptr<OptimizationMethod>(),
const Real  errorAccept = 0.0002,
const bool  useMaxError = false,
const Size  maxGuesses = 50 
)

Definition at line 157 of file normalsabrinterpolation.hpp.

162 : t_(t), forward_(forward), alpha_(alpha), nu_(nu), rho_(rho), alphaIsFixed_(alphaIsFixed),
163 nuIsFixed_(nuIsFixed), rhoIsFixed_(rhoIsFixed), vegaWeighted_(vegaWeighted), endCriteria_(endCriteria),
164 optMethod_(optMethod), errorAccept_(errorAccept), useMaxError_(useMaxError), maxGuesses_(maxGuesses) {}
const QuantLib::ext::shared_ptr< OptimizationMethod > optMethod_
const QuantLib::ext::shared_ptr< EndCriteria > endCriteria_

Member Function Documentation

◆ interpolate()

Interpolation interpolate ( const I1 &  xBegin,
const I1 &  xEnd,
const I2 &  yBegin 
) const

Definition at line 165 of file normalsabrinterpolation.hpp.

165 {
166 return SABRInterpolation(xBegin, xEnd, yBegin, t_, forward_, alpha_, nu_, rho_, alphaIsFixed_, nuIsFixed_,
169 }

Member Data Documentation

◆ global

const bool global = true
static

Definition at line 170 of file normalsabrinterpolation.hpp.

◆ t_

Time t_
private

Definition at line 173 of file normalsabrinterpolation.hpp.

◆ forward_

Real forward_
private

Definition at line 174 of file normalsabrinterpolation.hpp.

◆ alpha_

Real alpha_
private

Definition at line 175 of file normalsabrinterpolation.hpp.

◆ nu_

Real nu_
private

Definition at line 175 of file normalsabrinterpolation.hpp.

◆ rho_

Real rho_
private

Definition at line 175 of file normalsabrinterpolation.hpp.

◆ alphaIsFixed_

bool alphaIsFixed_
private

Definition at line 176 of file normalsabrinterpolation.hpp.

◆ nuIsFixed_

bool nuIsFixed_
private

Definition at line 176 of file normalsabrinterpolation.hpp.

◆ rhoIsFixed_

bool rhoIsFixed_
private

Definition at line 176 of file normalsabrinterpolation.hpp.

◆ vegaWeighted_

bool vegaWeighted_
private

Definition at line 177 of file normalsabrinterpolation.hpp.

◆ endCriteria_

const QuantLib::ext::shared_ptr<EndCriteria> endCriteria_
private

Definition at line 178 of file normalsabrinterpolation.hpp.

◆ optMethod_

const QuantLib::ext::shared_ptr<OptimizationMethod> optMethod_
private

Definition at line 179 of file normalsabrinterpolation.hpp.

◆ errorAccept_

const Real errorAccept_
private

Definition at line 180 of file normalsabrinterpolation.hpp.

◆ useMaxError_

const bool useMaxError_
private

Definition at line 181 of file normalsabrinterpolation.hpp.

◆ maxGuesses_

const Size maxGuesses_
private

Definition at line 182 of file normalsabrinterpolation.hpp.