Method

NumCosmoMathSplineset_func_grid

Declaration [src]

void
ncm_spline_set_func_grid (
  NcmSpline* s,
  NcmSplineFuncType ftype,
  gint* F,
  const gdouble xi,
  const 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.

This method is not directly available to language bindings.

Parameters

ftype

Type: NcmSplineFuncType

A NcmSplineFuncType: must be either #NCM_SPLINE_FUNC_GRID_LINEAR or #NCM_SPLINE_FUNC_GRID_LOG.

F

Type: gint*

Function to be interpolated.

The data is owned by the caller of the method.
xi

Type: const gdouble

Lower knot.

xf

Type: const gdouble

Upper knot.

nnodes

Type: gsize

Number of knots including both limits knots [xi, xf].