1
0
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:
Matt Spraggs 2015-11-10 12:27:48 +00:00
parent bb044da413
commit 512494aed9

View File

@ -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]);