Method

NumCosmoMathSplineset_func1

Declaration [src]

void
ncm_spline_set_func1 (
  NcmSpline* s,
  NcmSplineFuncType ftype,
  NcmSplineFuncF F,
  GObject* obj,
  gdouble xi,
  gdouble xf,
  gsize max_nodes,
  gdouble rel_error
)

Description [src]

This function automatically determines the knots of s in the interval [xi, xf] given a ftype and rel_error.

Parameters

ftype

Type: NcmSplineFuncType

A NcmSplineFuncType.

F

Type: NcmSplineFuncF

Function to be approximated by spline functions.

obj

Type: GObject

GObject used by the function F.

The argument can be NULL.
The data is owned by the caller of the method.
xi

Type: gdouble

Lower knot.

xf

Type: gdouble

Upper knot.

max_nodes

Type: gsize

Maximum number of knots.

rel_error

Type: gdouble

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