mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
TabFunction: Added comment for quadratic interpolation.
This commit is contained in:
parent
bb044da413
commit
512494aed9
@ -107,6 +107,7 @@ double TabFunction::operator()(const double *arg) const
|
||||
xs[2] = next(it)->first;
|
||||
ys[2] = next(it)->second;
|
||||
|
||||
// Lagrange polynomial coefficient computation
|
||||
as[0]
|
||||
= (x - xs[1]) / (xs[0] - xs[1])
|
||||
* (x - xs[2]) / (xs[0] - xs[2]);
|
||||
|
Loading…
Reference in New Issue
Block a user