00001 #ifndef __Diff_H__ 00002 #define __Diff_H__ 00003 00004 00005 00024 #include <stdio.h> 00025 00026 00027 00028 class Diff 00029 { 00030 public: 00031 // Newton (un)divided differences 00032 static double undividedDiff(int ncells, double* data, int cellj, int order); 00033 static double dividedDiff(int ncells, double* data, int cellj, int order, double dx=1.0); 00034 00035 // eno interpolation 00036 static double eno1DInterpol(double x, int ncells, double* data, int order); 00037 }; 00038 00039 #endif 00040 00041