finmath / finmath-lib

Mathematical Finance Library: Algorithms and methodologies related to mathematical finance.
Apache License 2.0
488 stars 168 forks source link

Integration of SwapLegWithResetting into SwapLeg v2 #40

Closed NiklasRodi closed 7 years ago

NiklasRodi commented 7 years ago

What is this PR for?

What type of PR is it?

Refactoring

NiklasRodi commented 7 years ago

This is the same as the previous PR "Integration of SwapLegWithResetting into SwapLeg" but without the erroneous usage of firstPeriodStartDate in the calculation of the resetting notional.

Note that the resetting notional is still slightly wrong as it does not take the FxSpotDelay into account. This is something I will fix in the future

cfries commented 7 years ago

Nice.