29 const std::vector<Time>& rateTimes) {
31 before_ = std::lower_bound(rateTimes.begin(), rateTimes.end(),
32 paymentTime) - rateTimes.begin();
36 if (
before_ > rateTimes.size()-2)
44 Size numeraire)
const {
Curve state for market-model simulations
virtual Real discountRatio(Size i, Size j) const =0
Real numeraireBonds(const CurveState &, Size numeraire) const
MarketModelDiscounter(Time paymentTime, const std::vector< Time > &rateTimes)
Real Time
continuous quantity with 1-year units
std::size_t Size
size of a container
void checkIncreasingTimes(const std::vector< Time > ×)
check for strictly increasing times, first time greater than zero