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: NcmSplineFuncType

A NcmSplineFuncType.

F

Type: gint*

Function to be approximated by spline functions.

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

Type: const gdouble

Lower knot.

xf

Type: const gdouble

Upper knot.

max_nodes

Type: gsize

Maximum number of knots.

rel_error

Type: const gdouble

Relative error between the function to be interpolated and the spline result.