Method
NumCosmoMathSplineset_func_grid1
Declaration [src]
void
ncm_spline_set_func_grid1 (
NcmSpline* s,
NcmSplineFuncType ftype,
NcmSplineFuncF F,
GObject* obj,
gdouble xi,
gdouble xf,
gsize nnodes
)
Description [src]
This function fills the spline s with the function F values
in a uniform grid within the range [xi, xf] and a total of nnodes knots.
The difference between #ncm_spline_set_func_grid is how the user function is passed.
Here, it uses a NcmSplineFuncF function and it parameters are allocated in the object obj.
This function is more suitable to be used within Python.
Parameters
ftype-
Type:
NcmSplineFuncTypeA
NcmSplineFuncType: must be either #NCM_SPLINE_FUNC_GRID_LINEAR or #NCM_SPLINE_FUNC_GRID_LOG. F-
Type:
NcmSplineFuncFFunction to be interpolated.
obj-
Type:
GObjectGObject used by the function
F.The argument can be NULL.The data is owned by the caller of the method. xi-
Type:
gdoubleLower knot.
xf-
Type:
gdoubleUpper knot.
nnodes-
Type:
gsizeNumber of knots including both limits knots [
xi,xf].