Posted by
SourceForge.net on
URL: http://quantlib.414.s1.nabble.com/quantlib-Patches-2897358-Generalized-Hull-White-model-with-non-constant-parameters-tp8878.html
Patches item #2897358, was opened at 2009-11-13 17:38
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=312740&aid=2897358&group_id=12740Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Generalized Hull White model with non-constant parameters
Initial Comment:
Generalized Hull White model with non-constant parameters
I modified the Black-Karasinski and the Ornstein-Uhlenbcek classes to build a generalized Hull-White model with time-dependent drift and volatility parameters. It consists of four files pasted at the bottom of this message:
GeneralizedOUprocess.hpp,
GeneralizedOUprocess.cpp,
GeneralizedHW.hpp and
GeneralizedHW.cpp.
These files need an addition/modification to the parameter class. Change the NoConstraint() condition in PiecewiseConstantParameter class to PositiveConstraint(). Or define another class in the parameter.hpp and name it PiecewiseConstantParameter2. This is how I did it. I changed the code in PiecewiseConstantParameter class
from --------
public:
PiecewiseConstantParameter(const std::vector<Time>& times)
: Parameter(times.size()+1,
boost::shared_ptr<Parameter::Impl>(
new PiecewiseConstantParameter2::Impl(times)),
NoConstraint())
to ----------
public:
PiecewiseConstantParameter2(const std::vector<Time>& times)
: Parameter(times.size(),
boost::shared_ptr<Parameter::Impl>(
new PiecewiseConstantParameter2::Impl(times)),
PositiveConstraint())
You will obviously nedd to make some changes to the paths in the include commands.
I would like these to be added to the quantlib library in the future. Please let me know what you think and also what I should do to make it a non-experimental contribution.
Thank you,
Javit
Please follow this link for the source :
http://old.nabble.com/Generalized-Hull-White-model-with-non-constant-parameters-td26287370.html----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=312740&aid=2897358&group_id=12740------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev