Rechercher une page de manuel
QuantLib_CalibrationHelper
Langue: en
Version: 373915 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
QuantLib::CalibrationHelper -liquid market instrument used during calibration
SYNOPSIS
#include <ql/models/calibrationhelper.hpp>
Inherits QuantLib::Observer, and QuantLib::Observable.
Inherited by CapHelper, HestonModelHelper, and SwaptionHelper.
Public Types
enum CalibrationErrorType { RelativePriceError, PriceError, ImpliedVolError }
Public Member Functions
CalibrationHelper (const Handle< Quote > &volatility, const Handle< YieldTermStructure > &termStructure, CalibrationErrorType calibrationErrorType=RelativePriceError)
void update ()
Real marketValue () const
returns the actual price of the instrument (from volatility)
virtual Real modelValue () const =0
returns the price of the instrument according to the model
virtual Real calibrationError ()
returns the error resulting from the model valuation
virtual void addTimesTo (std::list< Time > ×) const =0
Volatility impliedVolatility (Real targetValue, Real accuracy, Size maxEvaluations, Volatility minVol, Volatility maxVol) const
Black volatility implied by the model.
virtual Real blackPrice (Volatility volatility) const =0
Black price given a volatility.
void setPricingEngine (const boost::shared_ptr< PricingEngine > &engine)
Protected Attributes
Real marketValue_
Handle< Quote > volatility_
Handle< YieldTermStructure > termStructure_
boost::shared_ptr< PricingEngine > engine_
Detailed Description
liquid market instrument used during calibration
Author
Generated automatically by Doxygen for QuantLib from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre