From cc6fcc8565d52c7de86c6f41a054469ee9a18d54 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Tue, 27 Apr 2010 13:36:17 +0200 Subject: [PATCH] Add a function to lookup the sampled x coordinates --- src/interpolate.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interpolate.hpp b/src/interpolate.hpp index 6768a3a..08a9a88 100644 --- a/src/interpolate.hpp +++ b/src/interpolate.hpp @@ -26,6 +26,7 @@ namespace CosmoTool uint32_t getNumPoints() const; void fillWithXY(double *x, double *y) const; double getMaxX() const; + double getXi(int i) const { return spline->x[i]; } protected: gsl_interp_accel *accel_interp; gsl_spline *spline;