Method
NumCosmoMathFunctionSampleSetadd_func
Declaration [src]
void
ncm_function_sample_set_add_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 a new sample
point. 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
a new point.
Parameters
x-
Type:
const gdoubleKnot position.
f-
Type:
NcmFunctionSampleSetFuncFunction to evaluate at
x. user_data-
Type:
gpointerUser data to pass to
f.The argument can be NULL.The data is owned by the caller of the method.