Skip to content

Conversation

@klausspanderen
Copy link
Contributor

No description provided.

@lballabio lballabio added this to the 1.11 release milestone May 12, 2017
function with control variate for the piecewise constant time dependent
Heston model
Real andersenPiterbargEpsilon = 1e-8);


// normalized characteristic function
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this can be in the private section?

Copy link
Owner

@lballabio lballabio Sep 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same goes for chF and lnChF in the other engine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we have tests "against" these functions. IMO we should have the characteristic function of the Heston model and of the piecewise constant Heston model available somewhere. Another place would be the class HestonModel and the class PiecewiseTimeDependentHestonModel but we usuall don't perform complex math in the model classes therefore I've put it into the engine. Now while you bring it up I think we should add a lnChF method to the AnalyticHestonEngine as well for "symmetry" reasons. What do you think?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's leave them here.

suite->add(QUANTLIB_TEST_CASE(&HestonModelTest::testCosHestonCumulants));
suite->add(QUANTLIB_TEST_CASE(&HestonModelTest::testCosHestonEngine));
suite->add(QUANTLIB_TEST_CASE(&HestonModelTest::testCharacteristicFct));
suite->add(QUANTLIB_TEST_CASE(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These can go in the "faster" section, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I haven't fully understood your proposal. Isn't "faster" the default? Or do you want to move them to the fast/slow section.

Copy link
Owner

@lballabio lballabio Sep 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't clear. They are already in the faster section. My question was: they're fast enough for it, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The seven new tests are taking less than a second. I'd leave them in the "faster" section. Do you have a criteria to decide where to put new tests, e.g. everything below 1 second goes to faster?

@lballabio
Copy link
Owner

I didn't set a limit per test. I looked at the report of your parallel test runner and I cut tests starting from the longest until the whole suite took 3 or 4 minutes. (I don't remember the cuts for fast and faster.) Unless tests are obviously slow, I would add them until we see that the suite gets slower, at which point I'd reconsider.

@lballabio lballabio merged commit d7b81af into lballabio:master Sep 4, 2017
lballabio added a commit that referenced this pull request Sep 4, 2017
@klausspanderen klausspanderen deleted the heston_cv branch September 5, 2017 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants