/* interpolation.h */ #ifndef INTERPOLATION_H_ #define INTERPOLATION_H_ #include #include #include #include class interpolation { public: interpolation(); interpolation(std::vector, std::vector); auto set(std::vector, std::vector) -> void; auto operator()(double x) -> double; auto min()-> double { return _x_min; } auto max()-> double { return _x_max; } private: std::vector _x, _y; double _x_min, _x_max; std::unique_ptr _acc; std::unique_ptr _spline; }; #endif /* End of File */