Re: Exposing GeneralizedHullWhite in QuantLibXL

Posted by Peter Caspers-4 on
URL: http://quantlib.414.s1.nabble.com/Exposing-GeneralizedHullWhite-in-QuantLibXL-tp14826p14828.html

> The corresponding part of GeneralizedHullWhite.hpp in QuantLib is
>
>         boost::function<Real (Time)> speed() const;
>         boost::function<Real (Time)> vol() const;

no, it isn't. These are private methods of the class, if I am not
mistaken, not part of the constructor. The
latter reads

        GeneralizedHullWhite(
            const Handle<YieldTermStructure>& yieldtermStructure,
            const std::vector<Date>& speedstructure,
            const std::vector<Date>& volstructure,
            const std::vector<Real>& speed,
            const std::vector<Real>& vol);

so you should check your wrapper code (or post it here for further
clarification).

Depending on what you are planning to do, a look into the sister
folder ql/experimental/models might also
be interesting (well at the moment probably only if you connect to the
current git master, not on a released
version).

Best regards
Peter

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users