// FunctionFromTable class // Glen Cowan, RHUL Physics Dept., November 2014 #ifndef FUNCTIONFROMTABLE_H #define FUNCTIONFROMTABLE_H #include #include using namespace std; class FunctionFromTable { public: FunctionFromTable(string file, double s = 1.); double val(double x); int len() { return m_x.size(); } double x(int i) { return m_x[i]; } double y(int i) { return m_y[i]; } double maxVal(); private: vector m_x; vector m_y; }; #endif