| Top |
Description
This set of functions implements 4 different methods to automatically determine the NcmVector of knots of a NcmSpline given a relative error between the function to be interpolated and the spline result.
Functions
ncm_spline_set_func ()
void ncm_spline_set_func (NcmSpline *s,NcmSplineFuncType ftype,gsl_function *F,gdouble xi,gdouble xf,gsize max_nodes,gdouble rel_error);
This function automatically determines the knots of s
in the interval [xi
, xf
] given a ftype
and rel_error
.
[skip]
Parameters
s |
a NcmSpline. |
|
ftype |
||
F |
function to be approximated by spline functions. |
|
xi |
lower knot. |
|
xf |
upper knot. |
|
max_nodes |
maximum number of knots. |
|
rel_error |
relative error between the function to be interpolated and the spline result. |