00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef EVTPOLINT_HH
00021 #define EVTPOLINT_HH
00022
00023
00024 #include <cmath>
00025 #include <string>
00026 #include <iostream>
00027 #include <vector>
00028 using std::endl;
00029 using std::vector;
00030
00031 class EvtPolInt{
00032 public:
00033 EvtPolInt(vector<double> xi, vector<double> yi, double x){
00034 xx = x;
00035 size = xi.size();
00036 vx.clear();
00037 vy.clear();
00038 for(int i=0;i<size;i++){
00039 vx.push_back(xi[i]);
00040 vy.push_back(yi[i]);
00041 }
00042 }
00043 virtual ~EvtPolInt(){}
00044
00045 void polynomial();
00046 void ratint();
00047 vector <double> spline();
00048 void splint();
00049 double getvalue();
00050 double geterror();
00051
00052 private:
00053 vector <double> vx, vy;
00054 double xx,value,error;
00055 int size;
00056
00057 };
00058
00059
00060
00061 #endif