QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
ImpliedVolatilityHelper Class Reference

helper class for one-asset implied-volatility calculation More...

#include <impliedvolatility.hpp>

+ Collaboration diagram for ImpliedVolatilityHelper:

Static Public Member Functions

static Volatility calculate (const Instrument &instrument, const PricingEngine &engine, SimpleQuote &volQuote, Real targetValue, Real accuracy, Natural maxEvaluations, Volatility minVol, Volatility maxVol)
 
static ext::shared_ptr< GeneralizedBlackScholesProcessclone (const ext::shared_ptr< GeneralizedBlackScholesProcess > &, const ext::shared_ptr< SimpleQuote > &)
 

Detailed Description

helper class for one-asset implied-volatility calculation

The passed engine must be linked to the passed quote (see, e.g., VanillaOption to see how this can be achieved.)

Note
this function is meant for developers of option classes so that they can implement an impliedVolatility() method.

Definition at line 43 of file impliedvolatility.hpp.

Member Function Documentation

◆ calculate()

Volatility calculate ( const Instrument instrument,
const PricingEngine engine,
SimpleQuote volQuote,
Real  targetValue,
Real  accuracy,
Natural  maxEvaluations,
Volatility  minVol,
Volatility  maxVol 
)
static

Definition at line 61 of file impliedvolatility.cpp.

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

◆ clone()

ext::shared_ptr< GeneralizedBlackScholesProcess > clone ( const ext::shared_ptr< GeneralizedBlackScholesProcess > &  process,
const ext::shared_ptr< SimpleQuote > &  volQuote 
)
static

The returned process is equal to the passed one, except for the volatility which is flat and whose value is driven by the passed quote.

Definition at line 84 of file impliedvolatility.cpp.

+ Here is the caller graph for this function: