mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-06-18 15:27:05 +01:00
TabFunction: Fixed bug in quadratic interpolation
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user