41 const Size paths,
const std::vector<std::string>& currencies,
42 const std::vector<Handle<YieldTermStructure>>& curves,
const std::vector<Handle<Quote>>& fxSpots,
43 const std::vector<std::pair<std::string, QuantLib::ext::shared_ptr<InterestRateIndex>>>& irIndices,
44 const std::vector<std::pair<std::string, QuantLib::ext::shared_ptr<ZeroInflationIndex>>>& infIndices,
45 const std::vector<std::string>& indices,
const std::vector<std::string>& indexCurrencies,
46 const Handle<BlackScholesModelWrapper>& model,
47 const std::map<std::pair<std::string, std::string>, Handle<QuantExt::CorrelationTermStructure>>& correlations,
48 const McParams& mcParams,
const std::set<Date>& simulationDates,
50 const std::string& calibration =
"ATM",
51 const std::map<std::string, std::vector<Real>>& calibrationStrikes = {});
54 BlackScholes(
const Size paths,
const std::string& currency,
const Handle<YieldTermStructure>& curve,
55 const std::string& index,
const std::string& indexCurrency,
56 const Handle<BlackScholesModelWrapper>& model,
const McParams& mcParams,
57 const std::set<Date>& simulationDates,
59 const std::string& calibration =
"ATM",
const std::vector<Real>& calibrationStrikes = {});
68 void populatePathValues(
const Size nSamples, std::map<Date, std::vector<RandomVariable>>& paths,
69 const QuantLib::ext::shared_ptr<MultiPathVariateGeneratorBase>& gen,
70 const std::vector<Array>& drift,
const std::vector<Matrix>& sqrtCov)
const;
black scholes model base class for n underlyings (fx, equity or commodity)
void performCalculations() const override
RandomVariable getFutureBarrierProb(const std::string &index, const Date &obsdate1, const Date &obsdate2, const RandomVariable &barrier, const bool above) const override
void populatePathValues(const Size nSamples, std::map< Date, std::vector< RandomVariable > > &paths, const QuantLib::ext::shared_ptr< MultiPathVariateGeneratorBase > &gen, const std::vector< Array > &drift, const std::vector< Matrix > &sqrtCov) const
std::vector< Matrix > covariance_
const std::map< std::string, std::vector< Real > > calibrationStrikes_
const std::string calibration_
static IborFallbackConfig defaultConfig()
Serializable Credit Default Swap.