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:
NcmSplineFuncTypeA
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:
gdoubleLower knot of x-coordinate.
xu-
Type:
gdoubleUpper knot of x-coordinate.
yl-
Type:
gdoubleLower knot of y-coordinate.
yu-
Type:
gdoubleUpper knot of y-coordinate.
rel_err-
Type:
gdoubleRelative error between the function to be interpolated and the spline result.