Method
NumCosmoMathSplineset_func
Declaration [src]
void
ncm_spline_set_func (
NcmSpline* s,
NcmSplineFuncType ftype,
gint* F,
const gdouble xi,
const gdouble xf,
gsize max_nodes,
const gdouble rel_error
)
Description [src]
This function automatically determines the knots of s in the interval [xi, xf] given a ftype and rel_error.
This method is not directly available to language bindings.
Parameters
ftype-
Type:
NcmSplineFuncTypeA
NcmSplineFuncType. F-
Type:
gint*Function to be approximated by spline functions.
The data is owned by the caller of the method. xi-
Type:
const gdoubleLower knot.
xf-
Type:
const gdoubleUpper knot.
max_nodes-
Type:
gsizeMaximum number of knots.
rel_error-
Type:
const gdoubleRelative error between the function to be interpolated and the spline result.