| NumCosmo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
Synopsis
enum NcmSplineFuncType; void ncm_spline_set_func (NcmSpline *s,NcmSplineFuncType ftype,gsl_function *F,gdouble xi,gdouble xf,gsize max_nodes,gdouble rel_error); #define NCM_SPLINE_FUNC_DEFAULT_MAX_NODES #define NCM_SPLINE_KNOT_DIFF_TOL
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.
Details
enum NcmSplineFuncType
typedef enum {
NCM_SPLINE_FUNCTION_4POINTS,
NCM_SPLINE_FUNCTION_2x2POINTS,
NCM_SPLINE_FUNCTION_SPLINE,
NCM_SPLINE_FUNCTION_SPLINE_LNKNOT,
} NcmSplineFuncType;
FIXME
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.
|
a NcmSpline. |
|
a NcmSplineFuncType. |
|
function to be approximated by spline functions. |
|
lower knot. |
|
upper knot. |
|
maximum number of knots. |
|
relative error between the function to be interpolated and the spline result. |