Skip to content

Commit

Permalink
Merge pull request #829.
Browse files Browse the repository at this point in the history
vol should be floored at 1e-8, not capped
  • Loading branch information
lballabio committed Jun 6, 2020
2 parents 8773f58 + 3f4c5c2 commit 5430716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql/experimental/processes/hestonslvprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace QuantLib {

const Real s = std::exp(x[0]);
const Real vol =
std::min(1e-8, std::sqrt(x[1]*leverageFct_->localVol(t, s, true)));
std::max(1e-8, std::sqrt(x[1]*leverageFct_->localVol(t, s, true)));

const Real sigma2 = mixedSigma_ * vol;
const Real sqrhov = std::sqrt(1.0 - rho_*rho_);
Expand Down

0 comments on commit 5430716

Please sign in to comment.