8 Jul 19:08
HestonDAXCalibration with dividends
From: cc2008 <cc200802 <at> yahoo.com>
Subject: HestonDAXCalibration with dividends
Newsgroups: gmane.comp.finance.quantlib.user
Date: 2008-07-08 17:10:03 GMT
Subject: HestonDAXCalibration with dividends
Newsgroups: gmane.comp.finance.quantlib.user
Date: 2008-07-08 17:10:03 GMT
Hi,
I've modified parts of the test-suite/hestonmodel.cpp to incorporate
dividends. Specifically, I've changed the testDAXCalibration method to
include some descrete divident values (paid at the same dates in the
program) as follows (full source code attached):
vector<Real> dividends;
for (i = 0; i < 8; ++i) {
dates.push_back(settlementDate + t[i]);
rates.push_back(r[i]);
dividends.push_back(0.1);
}
Handle<YieldTermStructure> dividendTS(
boost::shared_ptr<YieldTermStructure>(
new ZeroCurve(dates, dividends, dayCounter)));
When I run the program, it aborts. On Linux, I get the following trace using
gdb.
Continuing.
Testing Heston model calibration using DAX volatility data...
Program received signal SIGABRT, Aborted.
0x0000002a9643f479 in raise () from /lib64/tls/libc.so.6
(Continue reading)
RSS Feed