GOffice.CSpline¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
a |
r/w |
||
b |
r/w |
||
c |
r/w |
||
n |
r/w |
||
ref_count |
r/w |
||
x |
r/w |
||
y |
r/w |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
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
) – theGOffice.value
- Returns:
the interpolated derivative at x, or 0 if an error occurred.
- Return type:
sp must be a valid spline structure as returned by go_cspline_init.
- get_derivs(x, n)¶
- Parameters:
- Returns:
a newly allocated array of the n interpolated derivatives which should be destroyed by a call to
GLib.free
when not anymore needed, orNone
if an error occurred.- Return type:
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:
- 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, orNone
if an error occurred.- Return type:
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
) – TheGOffice.value
- Returns:
the interpolated
GOffice.value
for x, or 0 if an error occurred.- Return type:
sp must be a valid spline structure as returned by go_cspline_init.
- get_values(x, n)¶
- Parameters:
- Returns:
a newly allocated array of interpolated values which should be destroyed by a call to
GLib.free
when not anymore needed, orNone
if an error occurred.- Return type:
sp must be a valid spline structure as returned by go_cspline_init. The x values must be sorted in increasing order.