Method

NumCosmoMathSplineset_func_scale

Declaration [src]

void
ncm_spline_set_func_scale (
  NcmSpline* s,
  NcmSplineFuncType ftype,
  gint* F,
  const gdouble xi,
  const gdouble xf,
  gsize max_nodes,
  const gdouble rel_error,
  const gdouble scale,
  gint refine,
  gdouble refine_ns
)

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.

scale

Type: const gdouble

Scale of function, it is used to compute the absolute tolerance abstol = f_scale * rel_error.

refine

Type: gint

If TRUE sample additional points to check if there are regions not satisfying the required tolerance.

refine_ns

Type: gdouble

Number of standard-deviation used to refine the grid.