| Top |
| GQuark | cd_interp_error_quark () |
| CdInterpKind | cd_interp_get_kind () |
| GArray * | cd_interp_get_x () |
| GArray * | cd_interp_get_y () |
| guint | cd_interp_get_size () |
| void | cd_interp_insert () |
| gboolean | cd_interp_prepare () |
| gdouble | cd_interp_eval () |
| const gchar * | cd_interp_kind_to_string () |
| #define | CD_INTERP_ERROR |
| #define | CD_INTERP_TYPE_ERROR |
| enum | CdInterpError |
| enum | CdInterpKind |
CdInterpKind
cd_interp_get_kind (CdInterp *interp);
Gets the kind of INTERP file.
Since: 0.1.31
GArray *
cd_interp_get_x (CdInterp *interp);
Gets the X data used the interpolation.
NOTE: this is only guaranteed to return the data inserted by
cd_interp_insert() *BEFORE* calling cd_interp_prepare().
After prepating the CdInterp this data should be considered an implementation detail.
Since: 0.1.31
GArray *
cd_interp_get_y (CdInterp *interp);
Gets the Y data used the interpolation.
NOTE: this is only guaranteed to return the data inserted by
cd_interp_insert() *BEFORE* calling cd_interp_prepare().
After prepating the CdInterp this data should be considered an implementation detail.
Since: 0.1.31
guint
cd_interp_get_size (CdInterp *interp);
Gets the number of items of data added with cd_interp_insert().
NOTE: This method has to be called after cd_interp_prepare() and it returns
the number of items originally in the array.
If you need the updated private size then just use cd_interp_get_x() and
read the size from that.
Since: 0.1.31
void cd_interp_insert (CdInterp *interp,gdouble x,gdouble y);
Inserts data to be interpolated.
Since: 0.1.31
gboolean cd_interp_prepare (CdInterp *interp,GError **error);
Prepares the data set so that cd_interp_eval() can be used.
Since: 0.1.31
gdouble cd_interp_eval (CdInterp *interp,gdouble value,GError **error);
Evaluate the interpolation function at a specific point.
You must have called cd_interp_insert() and cd_interp_prepare() before
calling this method.
Since: 0.1.31