Re: Structure functions in header file <ql/.../probabilitytraits.hpp>
Posted by
Andres Hernandez-2 on
Jul 21, 2017; 10:25am
URL: http://quantlib.414.s1.nabble.com/Structure-functions-in-header-file-ql-probabilitytraits-hpp-tp18433p18434.html
Hi Amine,
the traits classes will be used as template parameter and there it will be expected that the function has a particular signature.
Look at SurvivalProbability in the same file (probabilitytraits.hpp) for an example where Size i is used.
Cheers
Andres
Hi there,
I was recently using the bootstrapping classes to build all sorts of hazard rates curves from quotes of credit spreads in the market for a prototype of mine and came across the following functions in <probabilitytraits.hpp>:
Real HazardRate::minValueAfter(Size i, const C*c, bool validData) {…} and Real HazardRate::maxValueAfter(Size i, const C*c, bool validData) {…}
I was wondering whether the argument Size i in these two functions is redundant, as I can’t see its use anywhere in the source code for these two functions.
Thanks,
Amine
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users