|
From: Ferdinando A. <qf...@am...> - 2009-04-20 13:26:32
|
Hi Chris On Sun, Apr 19, 2009 at 5:19 PM, <chr...@us...> wrote: > Revision: 16183 > http://quantlib.svn.sourceforge.net/quantlib/?rev=16183&view=rev > Author: chris_kenyon > Date: 2009-04-19 15:19:25 +0000 (Sun, 19 Apr 2009) > [...] > Added Paths: > ----------- > trunk/QuantLib/ql/experimental/inflation/polynomial2D.hpp > trunk/QuantLib/ql/experimental/inflation/polynomial2Dspline.hpp unless I've missed something you don't need Polynomial2DInterpolation as you can obtain quadratic interpolation using the class CubicInterpolation with DerivativeApprox::Parabolic. Then it might be too exoteric, but it would benice to generalize Interpolation2D to accept a policy (x_first or y_first) and (possibly) different factories for the x and y axis, so that your new Polynomial2DSpline (and the old BicubicSpline, BilinearInterpolation too) would just become typedefs ciao -- Nando |