Closed summepau closed 4 years ago
Hi Paul,
note that the function getValue is overloaded. Calling this function with arguments of the type double does not yield the same result as calling it with arguments of type int.
The part of DataTableLinear which you are refering to, is the documentation of the function which expects arguments of type int. However, SABRVolatilityCube calls the double implementation. The documentation of this overloaded function is:
* @param maturity Maturity in double as year fraction with respect to reference date.
* @param termination Termination in double as year fraction with respect to reference date.
This means the termination in this case is treated as an absolute number.
Kind Regards, Jan
Understood, thanks!
Hi,
I am looking – as a relative beginner to Java – at your finmath package, specifically to build a SABR swaption grid.
I am confused by your conventions though.
In the code to getValue in SABRVolatilityCube.java you have
Therefore termination must be an absolute number, not relative to maturity.
But all the code does next is call the data tables:
and DataTableLinear is defined with termination being relative to maturity:
So for example a 5y-2y swaption cannot be accessed. Have I missed something?
Regards
Paul