GOffice.CSpline

Fields

Name

Type

Access

Description

a

float

r/w

b

float

r/w

c

float

r/w

n

int

r/w

ref_count

int

r/w

x

float

r/w

y

float

r/w

Methods

class

destroyl (sp)

destroy ()

get_deriv (x)

get_derivs (x, n)

get_integrals (x, n)

get_value (x)

get_values (x, n)

Details

class GOffice.CSpline
classmethod destroyl(sp)
Parameters:

sp (GOffice.CSplinel) – a spline structure returned by go_cspline_init.

Frees the spline structure when done.

destroy()

Frees the spline structure when done.

get_deriv(x)
Parameters:

x (float) – the GOffice.value

Returns:

the interpolated derivative at x, or 0 if an error occurred.

Return type:

float

sp must be a valid spline structure as returned by go_cspline_init.

get_derivs(x, n)
Parameters:
  • x (float) – a vector a values at which interpolation is requested.

  • n (int) – the number of interpolation requested.

Returns:

a newly allocated array of the n interpolated derivatives which should be destroyed by a call to GLib.free when not anymore needed, or None if an error occurred.

Return type:

float

sp must be a valid spline structure as returned by go_cspline_init. The x values must be sorted in increasing order.

get_integrals(x, n)
Parameters:
  • x (float) – a vector a values at which interpolation is requested.

  • n (int) – the number of interpolation requested.

Returns:

a newly allocated array of the n-1 integrals on the intervals between two consecutive values stored in x. which should be destroyed by a call to GLib.free when not anymore needed, or None if an error occurred.

Return type:

float

sp must be a valid spline structure as returned by go_cspline_init. The x values must be sorted in increasing order.

get_value(x)
Parameters:

x (float) – The GOffice.value

Returns:

the interpolated GOffice.value for x, or 0 if an error occurred.

Return type:

float

sp must be a valid spline structure as returned by go_cspline_init.

get_values(x, n)
Parameters:
  • x (float) – a vector a values at which interpolation is requested.

  • n (int) – the number of interpolation requested.

Returns:

a newly allocated array of interpolated values which should be destroyed by a call to GLib.free when not anymore needed, or None if an error occurred.

Return type:

float

sp must be a valid spline structure as returned by go_cspline_init. The x values must be sorted in increasing order.