|
From: Luigi B. <lui...@gm...> - 2009-10-20 15:11:13
|
On Tue, 2009-10-20 at 16:06 +0200, Ferdinando Ametrano wrote: > On Tue, Oct 20, 2009 at 3:25 PM, Luigi Ballabio > <lui...@gm...> wrote: > > Oh---and also smileSection->volatility(Null<Real>()) returning the ATM > > volatility [*], when there's a perfectly serviceable atmLevel method > > that can be used for writing volatility(atmLevel()). > > The point here is: > 1) to have the interface gracefully degrade to the flat-smile case > 2) the traders I work for claim it's too much effort to specify a > strike even for non-flat smile, since unless differently specified, > volatility tout-court is the atm one Well, I'm a lazy Italian myself, but in this case I'd go for clarity :) > > why is exerciseTime() public when it's only used internally? > no strong reason beside he fact that all termstructures' interfaces > are also time based so it might be sensible for a smile to know where > it stands along the time dimension Point taken. It stays public then. On the other hand, initializeExerciseTime should be protected, right? Luigi -- Glendower: I can call spirits from the vasty deep. Hotspur: Why, so can I, or so can any man; But will they come when you do call for them? -- King Henry the Fourth Part I, Act III, Scene I |