Re: Re: accrualAmount() function within the bond class...
Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Problem-within-the-Bond-YieldSolver-class-tp4278p4285.html
On 12/10/2005 09:58:50 AM, Joseph Wang wrote:
> Looking over the code it doesn't look that bad to refactor things so
> that QL_TODAYS_PAYMENT is modularized. The key seems to create a
> routine in Event
>
> bool Event::hasOccurred(Date settlementDate,
I like this---thanks for the fix.
On the other hand, I like EventDate less. It seems to be there just to
give a hasOccurred method to Date. I'll be hacking your code shortly :)
Later,
Luigi
----------------------------------------
Weiler's Law:
Nothing is impossible for the man who doesn't have to
do it himself.