Method

NumCosmoMathFunctionSampleSetadd_old_func

Declaration [src]

void
ncm_function_sample_set_add_old_func (
  NcmFunctionSampleSet* fss,
  const gdouble x,
  NcmFunctionSampleSetFunc f,
  gpointer user_data
)

Description [src]

Evaluates the vector-valued function f at x and adds the result as an old sample point. This function is useful for boundary extensions where the added point should be considered part of the base spline rather than a refinement target. The sample is inserted in the correct position to maintain ascending x-order. The interval_ok flag for the new sample is initialized to 0. The sample is marked as an old point (new_point = FALSE).

Parameters

x

Type: const gdouble

Knot position.

f

Type: NcmFunctionSampleSetFunc

Function to evaluate at x.

user_data

Type: gpointer

User data to pass to f.

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