![]() |
![]() |
![]() |
gtk-hst reference manual | ![]() |
---|---|---|---|---|
#include <gtk-hst/graph.h> HstGraph; HstGraphClass; HstGraph* hst_graph_new (int n, double *x, double *y); void hst_graph_reset (HstGraph *, int n, double *x, double *y);
This object is very similar to HstFunction but instead of a function it stores a sampling of the values of a function. The function is therefore evaluated by interpolation, instead of real evaluation.
typedef struct { HstFunctionClass parent_class; /* Methods */ /* signals */ } HstGraphClass;
HstGraph* hst_graph_new (int n, double *x, double *y);
Creates a new HstGraph
|
number of (x,y) pairs |
|
array with values of X |
|
array with values of Y |
Returns : |
a HstGraph |
void hst_graph_reset (HstGraph *, int n, double *x, double *y);
Changes the number of points and their values to the ones given at the input. Note: the values are copied into the internal buffers.
|
|
|
number of (x,y) pairs |
|
array with values of X |
|
array with values of Y |