|
From: Toyin A. <toy...@ho...> - 2006-09-12 08:27:34
|
Hi Nando, I agree with you that the Period class is much more flexible and powerful. I can see this within the new Schedule constructor(s). Currently I am in need of the new frequency types and thus have integrated this into my framework, however if, as you say, there is a bigger picture of using the Period class everywhere, then I'm happy just to keep this local until such time that the Period class is replicated everywhere. In actual fact, I use the Frequency enum type as a placeholder for the user to easily identify a period of time, but internally I convert this to the Period type and then call the new Schedule constructor. By the way, the new (work in progress) schedule class doesn't work with the daily frequency type (the constructor that takes the boolean endOfMonth parameter). It generates repeated daily dates... Toy out. >From: "Ferdinando Ametrano" <na...@am...> >To: "Toyin Akin" <toy...@ho...> >CC: lui...@gm..., qua...@li... >Subject: Re: [Quantlib-dev] Period class... some minor updates... >Date: Tue, 12 Sep 2006 09:47:28 +0200 > >Hi Toyin > >it hasn't been discussed yet, but I'm actually in favor of deprecating >(and then removing) Frequency adopting instead a more pervasive usage >of Period. Frequency has been in QuantLib before Period, but nowadays >I cannot see any good reason for retaing it, as it is less flexible >than Period. The only plus might be the "Once" Frequency which doesn't >have a clear equivalent Period. > >There is already ongoing work in QuantLib to allow Period as >alternative to Frequency. > >As for your specific proposal: once we introduce EveryFifthWeek and >EverySixthWeek, why not introduce EverySeventhWeek, etc? >This is one of the reason I prefer Period which doesn't have this >problem... > >look forward to feedback > >ciao -- Nando > >On 9/12/06, Toyin Akin <toy...@ho...> wrote: >> >>Hi Luigi, >> >>Is it possible to add the following additional Frequency types to >>quantLib? >>(Assuming that the implementation is not too shabby) >> >>I've updated the files based on the most recent version within CVS. >> >>Thanking you in advance... >> >>Toy out. >> >> >> >>------------------------------------------------------------------------- >>Using Tomcat but need to do more? Need to support web services, security? >>Get stuff done quickly with pre-integrated technology to make your job >>easier >>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> >>_______________________________________________ >>QuantLib-dev mailing list >>Qua...@li... >>https://lists.sourceforge.net/lists/listinfo/quantlib-dev >> >> >> >> |