Logo
Reference manual - version qle_version
Public Member Functions | List of all members
AmcCalculator Class Referenceabstract

#include <qle/pricingengines/amccalculator.hpp>

Public Member Functions

virtual QuantLib::Currency npvCurrency ()=0
 
virtual std::vector< QuantExt::RandomVariablesimulatePath (const std::vector< QuantLib::Real > &pathTimes, std::vector< std::vector< QuantExt::RandomVariable >> &paths, const std::vector< size_t > &relevantPathIndex, const std::vector< size_t > &relevantTimeIndex)=0
 

Detailed Description

amc interface

Member Function Documentation

◆ npvCurrency()

virtual QuantLib::Currency npvCurrency ( )
pure virtual

currency of simulated npvs

◆ simulatePath()

virtual std::vector<QuantExt::RandomVariable> simulatePath ( const std::vector< QuantLib::Real > &  pathTimes,
std::vector< std::vector< QuantExt::RandomVariable >> &  paths,
const std::vector< size_t > &  relevantPathIndex,
const std::vector< size_t > &  relevantTimeIndex 
)
pure virtual
  • simulate paths on given times and return simulated npvs for all paths
  • relevantPathIndex gives the relevant entries in the paths that should be simulated in the end
  • relevantTimeIndex gives the corrosponding time indexes for a sticky closeOut run
  • if stickyCloseOutRun is true, the simulation times should be taken relevantTimeIndexes