Term Strucutres

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Term Strucutres

audetto
Hi guys,

I would like to tell you something about the behaviour of TermStructures
classes.

I don't understand why I should give the constructor of term structures
a Day Count Convention.

In my opinion a term structure is an object independent of Day Count Convention.
(I NEED Convention to create the term strucuture, I mean Rate Helpers need
Day COunt Convention!)

The Discount Factors for a given date does not change with conventions.
So I could imagine that

- TermStrucuture does not have a DayCount Convention
- DiscountFactor method does not need a DayCount Convention
- the function for a specific Rate DOES need this convention

any idea about that?

bye

andrea

__________________________________________________________________
Tiscali Ricaricasa
la prima prepagata per navigare in Internet a meno di un'urbana e
risparmiare su tutte le tue telefonate. Acquistala on line e non avrai
nessun costo di attivazione né di ricarica!
http://ricaricasaonline.tiscali.it/





Reply | Threaded
Open this post in threaded view
|

Re: Term Strucutres

Luigi Ballabio-2
At 10:25 AM 9/6/02 +0200, [hidden email] wrote:
>Hi guys,
>I don't understand why I should give the constructor of term structures
>a Day Count Convention.

Andrea,
         your reasoning is sound, but the DayCounter is there in order to
provide TermStructure with overloaded interfaces such as

     TermStructure::discount(Time t, bool extrapolate);
     TermStructure::discount(const Date& d, bool extrapolate);

The DayCounter is used to implement one in terms of the other.

Bye,
         Luigi