mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-10 19:20:44 +01: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()) {
|
if (it == value_.begin()) {
|
||||||
it = next(it);
|
it = next(it);
|
||||||
}
|
}
|
||||||
else if (it == value_.end()) {
|
else if (it == prev(value_.end())) {
|
||||||
it = prev(it);
|
it = prev(it);
|
||||||
}
|
}
|
||||||
xs[0] = prev(it)->first;
|
xs[0] = prev(it)->first;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user