This is a program to test the polynomial spline interpolation. More...
This is a program to test the polynomial spline interpolation.
It just prints some function to stdout. You can look at the result using the following commands:
--------— snip --------— ./test_spline > spline.csv gnuplot
gnuplot> plot "spline.csv" using 1:2 w l ti "Curve", \ "spline.csv" using 1:3 w l ti "Derivative", \ "spline.csv" using 1:4 w p ti "Monotonical" --------— snap --------—
Functions | |
| template<class Spline > | |
| void | testCommon (const Spline &sp, const double *x, const double *y) |
| template<class Spline > | |
| void | testFull (const Spline &sp, const double *x, const double *y, double m0, double m1) |
| template<class Spline > | |
| void | testNatural (const Spline &sp, const double *x, const double *y) |
| void | testAll () |
| void | plot () |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| void plot | ( | ) |
| void testAll | ( | ) |
| void testCommon | ( | const Spline & | sp, |
| const double * | x, | ||
| const double * | y | ||
| ) |
| void testFull | ( | const Spline & | sp, |
| const double * | x, | ||
| const double * | y, | ||
| double | m0, | ||
| double | m1 | ||
| ) |
| void testNatural | ( | const Spline & | sp, |
| const double * | x, | ||
| const double * | y | ||
| ) |
