Method

NumCosmoMathSpline2dset_function

Declaration [src]

void
ncm_spline2d_set_function (
  NcmSpline2d* s2d,
  NcmSplineFuncType ftype,
  gint* Fx,
  gint* Fy,
  gdouble xl,
  gdouble xu,
  gdouble yl,
  gdouble yu,
  gdouble rel_err
)

Description [src]

This function automatically determines the knots of s2d in the intervals [xl, xu] and [yl, yu] given a ftype and rel_error.

The functions Fx and Fy are the bidimensional function given at specific values of y and x, respectively. These x and y values must be in the the intervals [xl, xu] and [yl, yu].

This method is not directly available to language bindings.

Parameters

ftype

Type: NcmSplineFuncType

A NcmSplineFuncType.

Fx

Type: gint*

Function of x variable to be approximated by spline functions.

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

Type: gint*

Function of y variable to be approximated by spline functions.

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

Type: gdouble

Lower knot of x-coordinate.

xu

Type: gdouble

Upper knot of x-coordinate.

yl

Type: gdouble

Lower knot of y-coordinate.

yu

Type: gdouble

Upper knot of y-coordinate.

rel_err

Type: gdouble

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