Login  Register

RE: A few questions about PiecewiseFlatForward

Posted by Ravani, Michele on Sep 27, 2002; 2:45am
URL: http://quantlib.414.s1.nabble.com/A-few-questions-about-PiecewiseFlatForward-tp2215p2217.html

Ciao

> >* Wouldn't it be slightly more efficient to check the condition 'same
> >maturity date' in the RateHelperSorter?
>
> Maybe. Which actually means "I don't know." We would save a
> loop, but we
[snip]
> optimizations
> that I usually perform only after seeing the output of a profiler...

I agree, it was more an academic and kind of aesthetic :o) question

> >* The class takes a reference to a vector of RateHelper handles
> >owned by another part of the program.
[snip]
> Yes. The constructor takes a const ref to the vector and
> _copies_ it. If
> one adds/removes/replaces an element in the original vector,
> this won't
> affect the term structure.

Yes, I completely missed the fact that the member variable instruments_ is an actual copy.
This also means that the TermStructure is constant in terms of composition after being created.
I've come across a few times the need to keep it flexible from this point of view, but it should be rather easy to implement if necessary.

Ciao

"MMS <csfb.com>" made the following
 annotations on 09/27/02 10:35:52
------------------------------------------------------------------------------
This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.  Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted.
Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation.


==============================================================================