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

#include <ql/cashflows/lineartsrpricer.hpp>

+ Collaboration diagram for LinearTsrPricer::Settings:

Public Types

enum  Strategy { RateBound , VegaRatio , PriceThreshold , BSStdDevs }
 

Public Member Functions

 Settings ()
 
SettingswithRateBound (const Real lowerRateBound=defaultLowerBound, const Real upperRateBound=defaultUpperBound)
 
SettingswithVegaRatio (const Real vegaRatio=0.01)
 
SettingswithVegaRatio (const Real vegaRatio, const Real lowerRateBound, const Real upperRateBound)
 
SettingswithPriceThreshold (const Real priceThreshold=1.0E-8)
 
SettingswithPriceThreshold (const Real priceThreshold, const Real lowerRateBound, const Real upperRateBound)
 
SettingswithBSStdDevs (const Real stdDevs=3.0)
 
SettingswithBSStdDevs (const Real stdDevs, const Real lowerRateBound, const Real upperRateBound)
 

Public Attributes

Strategy strategy_ = RateBound
 
Real vegaRatio_ = 0.01
 
Real priceThreshold_ = 1.0E-8
 
Real stdDevs_ = 3.0
 
Real lowerRateBound_
 
Real upperRateBound_
 
bool defaultBounds_ = true
 

Detailed Description

Definition at line 71 of file lineartsrpricer.hpp.

Member Enumeration Documentation

◆ Strategy

enum Strategy
Enumerator
RateBound 
VegaRatio 
PriceThreshold 
BSStdDevs 

Definition at line 144 of file lineartsrpricer.hpp.

Constructor & Destructor Documentation

◆ Settings()

Settings ( )

Definition at line 73 of file lineartsrpricer.hpp.

Member Function Documentation

◆ withRateBound()

Settings & withRateBound ( const Real  lowerRateBound = defaultLowerBound,
const Real  upperRateBound = defaultUpperBound 
)

Definition at line 75 of file lineartsrpricer.hpp.

◆ withVegaRatio() [1/2]

Settings & withVegaRatio ( const Real  vegaRatio = 0.01)

Definition at line 84 of file lineartsrpricer.hpp.

◆ withVegaRatio() [2/2]

Settings & withVegaRatio ( const Real  vegaRatio,
const Real  lowerRateBound,
const Real  upperRateBound 
)

Definition at line 93 of file lineartsrpricer.hpp.

◆ withPriceThreshold() [1/2]

Settings & withPriceThreshold ( const Real  priceThreshold = 1.0E-8)

Definition at line 104 of file lineartsrpricer.hpp.

◆ withPriceThreshold() [2/2]

Settings & withPriceThreshold ( const Real  priceThreshold,
const Real  lowerRateBound,
const Real  upperRateBound 
)

Definition at line 113 of file lineartsrpricer.hpp.

◆ withBSStdDevs() [1/2]

Settings & withBSStdDevs ( const Real  stdDevs = 3.0)

Definition at line 124 of file lineartsrpricer.hpp.

◆ withBSStdDevs() [2/2]

Settings & withBSStdDevs ( const Real  stdDevs,
const Real  lowerRateBound,
const Real  upperRateBound 
)

Definition at line 133 of file lineartsrpricer.hpp.

Member Data Documentation

◆ strategy_

Strategy strategy_ = RateBound

Definition at line 151 of file lineartsrpricer.hpp.

◆ vegaRatio_

Real vegaRatio_ = 0.01

Definition at line 152 of file lineartsrpricer.hpp.

◆ priceThreshold_

Real priceThreshold_ = 1.0E-8

Definition at line 153 of file lineartsrpricer.hpp.

◆ stdDevs_

Real stdDevs_ = 3.0

Definition at line 154 of file lineartsrpricer.hpp.

◆ lowerRateBound_

Real lowerRateBound_

Definition at line 155 of file lineartsrpricer.hpp.

◆ upperRateBound_

Real upperRateBound_

Definition at line 155 of file lineartsrpricer.hpp.

◆ defaultBounds_

bool defaultBounds_ = true

Definition at line 156 of file lineartsrpricer.hpp.