GSL Spline

GSL Spline — GSL spline object wrapper

Synopsis

enum                NcmSplineGslType;
struct              NcmSplineGslClass;
struct              NcmSplineGsl;
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);
void                ncm_spline_gsl_set_type_by_id       (NcmSplineGsl *sg,
                                                         NcmSplineGslType type_id);

Object Hierarchy

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

Properties

  "type"                     NcmSplineGslType      : Read / Write
  "type-name"                gchar*                : Write

Description

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

Details

enum NcmSplineGslType

typedef enum {
  NCM_SPLINE_GSL_LINEAR = 0,
  NCM_SPLINE_GSL_POLYNOMIAL,
  NCM_SPLINE_GSL_CSPLINE,
  NCM_SPLINE_GSL_CSPLINE_PERIODIC,
  NCM_SPLINE_GSL_AKIMA,
} NcmSplineGslType;

FIXME

NCM_SPLINE_GSL_LINEAR

FIXME

NCM_SPLINE_GSL_POLYNOMIAL

FIXME

NCM_SPLINE_GSL_CSPLINE

FIXME

NCM_SPLINE_GSL_CSPLINE_PERIODIC

FIXME

NCM_SPLINE_GSL_AKIMA

FIXME

NCM_SPLINE_GSL_AKIMA_PERIODIC

FIXME

struct NcmSplineGslClass

struct NcmSplineGslClass {
};

struct NcmSplineGsl

struct NcmSplineGsl;

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.

ncm_spline_gsl_set_type_by_id ()

void                ncm_spline_gsl_set_type_by_id       (NcmSplineGsl *sg,
                                                         NcmSplineGslType type_id);

This function sets the interpolation method type_id to sg.

sg :

a NcmSplineGsl.

type_id :

gsl interpolation method id.

Property Details

The "type" property

  "type"                     NcmSplineGslType      : Read / Write

GSL Interpolation method.

Default value: NCM_SPLINE_GSL_CSPLINE


The "type-name" property

  "type-name"                gchar*                : Write

GSL Interpolation method name.

Default value: NULL