Skip to content

Commit

Permalink
decrease lower bound for interpolation, related to vinecopulib/rvinec…
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagler committed Sep 25, 2019
1 parent 401720d commit 5701b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/interpolation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ inline Eigen::VectorXd InterpolationGrid1d::interpolate(const Eigen::VectorXd& x
tmpvals(1) = this->values_(i);
tmpvals(2) = this->values_(i + 1);
tmpvals(3) = this->values_(i3);
return std::fmax(this->interp_on_grid(xx, tmpvals, tmpgrid), 1e-12);
return std::fmax(this->interp_on_grid(xx, tmpvals, tmpgrid), 0.0);
};

return tools::unaryExpr_or_nan(x, interpolate_one);
Expand Down

0 comments on commit 5701b3b

Please sign in to comment.