Method
NumCosmoMathSplineset_func_scale
Declaration [src]
void
ncm_spline_set_func_scale (
NcmSpline* s,
NcmSplineFuncType ftype,
gint* F,
const gdouble xi,
const gdouble xf,
gsize max_nodes,
const gdouble rel_error,
const gdouble scale,
gint refine,
gdouble refine_ns
)
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.
scale-
Type:
const gdoubleScale of function, it is used to compute the absolute tolerance abstol = f_scale * rel_error.
refine-
Type:
gintIf TRUE sample additional points to check if there are regions not satisfying the required tolerance.
refine_ns-
Type:
gdoubleNumber of standard-deviation used to refine the grid.