Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Re-SmileSection-tp13110p13114.html
On Tue, 2009-10-20 at 16:06 +0200, Ferdinando Ametrano wrote:
> On Tue, Oct 20, 2009 at 3:25 PM, Luigi Ballabio
> <
[hidden email]> 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
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev