Skip to content

Commit

Permalink
Merge e398fc0 into 470a070
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jul 16, 2021
2 parents 470a070 + e398fc0 commit 29ddacb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ql/models/calibrationhelper.hpp
Expand Up @@ -44,11 +44,13 @@ namespace QuantLib {
virtual Real calibrationError() = 0;
};

QL_DEPRECATED_DISABLE_WARNING
//! liquid Black76 market instrument used during calibration
class BlackCalibrationHelper : public LazyObject, public CalibrationHelper {
public:
enum CalibrationErrorType {
RelativePriceError, PriceError, ImpliedVolError};

BlackCalibrationHelper(Handle<Quote> volatility,
CalibrationErrorType calibrationErrorType = RelativePriceError,
const VolatilityType type = ShiftedLognormal,
Expand Down Expand Up @@ -96,7 +98,12 @@ namespace QuantLib {
protected:
mutable Real marketValue_;
Handle<Quote> volatility_;
Handle<YieldTermStructure> termStructure_;
/*! \deprecated Don't use this data member. It you're
inheriting from BlackCalibrationHelper, move
`termStructure_` to your derived class.
Deprecated in version 1.24.
*/
QL_DEPRECATED Handle<YieldTermStructure> termStructure_;
ext::shared_ptr<PricingEngine> engine_;
const VolatilityType volatilityType_;
const Real shift_;
Expand All @@ -105,6 +112,7 @@ namespace QuantLib {
class ImpliedVolatilityHelper;
const CalibrationErrorType calibrationErrorType_;
};
QL_DEPRECATED_ENABLE_WARNING

}

Expand Down

0 comments on commit 29ddacb

Please sign in to comment.