![]() |
![]() |
![]() |
NumCosmo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define NCM_SPLINE_FUNC_DEFAULT_MAX_NODES #define NCM_SPLINE_KNOT_DIFF_TOL enum NcmSplineFuncType; void ncm_spline_set_func (NcmSpline *s
,NcmSplineFuncType ftype
,gsl_function *F
,gdouble xi
,gdouble xf
,gsize max_nodes
,gdouble rel_error
);
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.
typedef enum { NCM_SPLINE_FUNCTION_4POINTS, NCM_SPLINE_FUNCTION_2x2POINTS, NCM_SPLINE_FUNCTION_SPLINE, NCM_SPLINE_FUNCTION_SPLINE_LNKNOT, } NcmSplineFuncType;
FIXME
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. |