2011. 6. 27. 11:00 quantlib/Implementation
Aside: late payments
Event::hasOccurred 함수의 구현은 간단하다: date comparison.
그러나 cash-flow date와 evaluation date가 같은때 무엇을 리턴해야만 하는지, 다시 말하면 instrument의 현재 가치에서 오늘의 payments를 포함해야만 하는지를 고민해야 한다.
이것은 주어진 desk에서의 conventions에 따르는 경향이 있다.
QuantLib은 사용자가 global settings에 의해 이것을 선택하도록 만든다; 적당한 boolean flag를 hasOccurred로 보내는 것에 의해 아무때나 overridden될 수 있다.
그러나 cash-flow date와 evaluation date가 같은때 무엇을 리턴해야만 하는지, 다시 말하면 instrument의 현재 가치에서 오늘의 payments를 포함해야만 하는지를 고민해야 한다.
이것은 주어진 desk에서의 conventions에 따르는 경향이 있다.
QuantLib은 사용자가 global settings에 의해 이것을 선택하도록 만든다; 적당한 boolean flag를 hasOccurred로 보내는 것에 의해 아무때나 overridden될 수 있다.
'quantlib > Implementation' 카테고리의 다른 글
Aside: keeping one's balance (0) | 2011.06.28 |
---|---|
4. Cash flows and coupons (0) | 2011.06.27 |
Aside: Cinderella method (0) | 2011.06.27 |
Aside: a friend in need (0) | 2011.06.20 |
TTP: Template template parameter (0) | 2011.06.20 |