File tree Expand file tree Collapse file tree
models/marketmodels/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232
3333namespace QuantLib {
3434
35- // ! Cms-rate coupon with digital digital call/put option
35+ // ! Cms-rate coupon with digital call/put option
3636 class DigitalCmsCoupon : public DigitalCoupon {
3737 public:
3838 DigitalCmsCoupon (
Original file line number Diff line number Diff line change @@ -148,9 +148,9 @@ namespace QuantLib {
148148 // @{
149149 // !
150150 ext::shared_ptr<FloatingRateCoupon> underlying_;
151- // ! strike rate for the the call option
151+ // ! strike rate for the call option
152152 Rate callStrike_;
153- // ! strike rate for the the put option
153+ // ! strike rate for the put option
154154 Rate putStrike_;
155155 // ! multiplicative factor of call payoff
156156 Real callCsi_ = 0 .;
Original file line number Diff line number Diff line change 3232
3333namespace QuantLib {
3434
35- // ! Ibor rate coupon with digital digital call/put option
35+ // ! Ibor rate coupon with digital call/put option
3636 class DigitalIborCoupon : public DigitalCoupon {
3737 public:
3838 DigitalIborCoupon (
Original file line number Diff line number Diff line change 3030
3131namespace QuantLib {
3232
33- // ! Cms-spread-rate coupon with digital digital call/put option
33+ // ! Cms-spread-rate coupon with digital call/put option
3434 class DigitalCmsSpreadCoupon : public DigitalCoupon {
3535 public:
3636 explicit DigitalCmsSpreadCoupon (
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ namespace QuantLib {
493493 atmYoYSwapDateRates_.first .push_back (referenceDate ()+cfMaturities_[i]);
494494 atmYoYSwapTimeRates_.first .push_back (timeFromReference (referenceDate ()+cfMaturities_[i]));
495495 // atmYoYSwapRates_->second.push_back(interpol((*cfMaturities_)[i]));
496- // Heuristic: overwrite the the swap rate with a value that guarantees that the
496+ // Heuristic: overwrite the swap rate with a value that guarantees that the
497497 // intrinsic value of all options is lower than the price
498498 Real newSwapRate = minSwapRateIntersection[i] + intrinsicValueAddOn;
499499 if (newSwapRate > maxSwapRateIntersection[i])
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ Real AlphaFinder::computeLinearPart(Real alpha) {
354354 Real bilimit = alpha0;
355355
356356 if (bottomValue > targetVariance && topValue > targetVariance) {
357- // see if if ok at some intermediate point by stepping through
357+ // see if ok at some intermediate point by stepping through
358358 Integer i=1 ;
359359 while ( i < steps && topValue> targetVariance) {
360360 topAlpha = alpha0 + (alphaMax-alpha0)*(i+0.0 )/(steps+0.0 );
@@ -367,7 +367,7 @@ Real AlphaFinder::computeLinearPart(Real alpha) {
367367 }
368368
369369 if (bottomValue > targetVariance && topValue > targetVariance) {
370- // see if if ok at some intermediate point by stepping through
370+ // see if ok at some intermediate point by stepping through
371371 Integer i=1 ;
372372 while ( i < steps && topValue> targetVariance) {
373373 bottomAlpha = alpha0 + (alphaMin-alpha0)*(i+0.0 )/(steps+0.0 );
You can’t perform that action at this time.
0 commit comments