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:
parent
ed3546e544
commit
9427e8dd16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user