1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

TabFunction: Fixed bug in quadratic interpolation

This commit is contained in:
Matt Spraggs 2015-11-12 13:14:44 +00:00
parent ed3546e544
commit 9427e8dd16

View File

@ -97,7 +97,7 @@ double TabFunction::operator()(const double *arg) const
if (it == value_.begin()) {
it = next(it);
}
else if (it == value_.end()) {
else if (it == prev(value_.end())) {
it = prev(it);
}
xs[0] = prev(it)->first;