GSL Spline

GSL Spline — GSL spline object wrapper

Synopsis

struct              NcmSplineGsl;
struct              NcmSplineGslClass;
NcmSpline *         ncm_spline_gsl_new                  (const gsl_interp_type *type);
NcmSpline *         ncm_spline_gsl_new_full             (const gsl_interp_type *type,
                                                         NcmVector *xv,
                                                         NcmVector *yv,
                                                         gboolean init);
void                ncm_spline_gsl_set_type             (NcmSplineGsl *sg,
                                                         const gsl_interp_type *type);

Object Hierarchy

  GObject
   +----NcmSpline
         +----NcmSplineGsl

Description

This object comprises the proper functions to use the GNU Scientific Library (GSL) spline functions and interpolation methods.

Details

struct NcmSplineGsl

struct NcmSplineGsl;

struct NcmSplineGslClass

struct NcmSplineGslClass {
};

ncm_spline_gsl_new ()

NcmSpline *         ncm_spline_gsl_new                  (const gsl_interp_type *type);

This function returns a new gsl NcmSpline which will use type interpolation method.

type :

gsl interpolation method.

Returns :

a new NcmSpline.

ncm_spline_gsl_new_full ()

NcmSpline *         ncm_spline_gsl_new_full             (const gsl_interp_type *type,
                                                         NcmVector *xv,
                                                         NcmVector *yv,
                                                         gboolean init);

This function returns a new gsl NcmSpline setting all its members.

type :

gsl interpolation method.

xv :

NcmVector of knots.

yv :

NcmVector of the values of the function, to be interpolated, computed at xv.

init :

TRUE to prepare the new NcmSpline or FALSE to not prepare it.

Returns :

a new NcmSpline.

ncm_spline_gsl_set_type ()

void                ncm_spline_gsl_set_type             (NcmSplineGsl *sg,
                                                         const gsl_interp_type *type);

This function sets the interpolation method type to sg.

sg :

a NcmSplineGsl.

type :

gsl interpolation method.