23#ifndef quantext_basecorrelation_quote_hpp
24#define quantext_basecorrelation_quote_hpp
26#include <ql/errors.hpp>
28#include <ql/handle.hpp>
29#include <ql/quote.hpp>
30#include <ql/types.hpp>
51 Real
value()
const override;
59 Handle<QuantExt::BaseCorrelationTermStructure>
bcts_;
69 Period term, Real lossLevel,
bool extrapolate)
70 : bcts_(bcts), term_(term), lossLevel_(lossLevel), extrapolate_(extrapolate) {
76 QL_ENSURE(
isValid(),
"invalid BaseCorrelationQuote");
77 Date ref =
bcts_->referenceDate();
80 return std::min(1.0 - QL_EPSILON, std::max(QL_EPSILON, c));
84 return !
bcts_.empty();
abstract base correlation structure and an 2d-interpolated base correlation structure
market element whose value depends on two other market element
Handle< QuantExt::BaseCorrelationTermStructure > bcts_
Handle< QuantExt::BaseCorrelationTermStructure > termStructure() const
BaseCorrelationQuote(const Handle< QuantExt::BaseCorrelationTermStructure > &bcts, Period term, Real lossLevel, bool extrapolate)
Real value() const override
bool isValid() const override