![]() |
![]() |
![]() |
gtk-hst reference manual | ![]() |
---|---|---|---|---|
#include <gtk-hst/histogram2d.h> #define HST_HISTOGRAM2D_CONST (obj) HstHistogram2D; HstHistogram2DClass; HstHistogram2D* hst_histogram2d_new (int nx, double xmin, double xmax, int ny, double ymin, double ymax, gdouble *ptr); void hst_histogram2d_fill (HstHistogram2D *h2d, double x, double y, double w); int hst_histogram2d_get_stats (HstHistogram2D *h2d, HstStats *s); void hst_histogram2d_reset (HstHistogram2D *h2d);
#define HST_HISTOGRAM2D_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), HST_TYPE_HISTOGRAM2D, HstHistogram2D const)
|
typedef struct { HstFunction2DClass __parent__; void (*fill)(HstHistogram2D *, double x, double y, double w); void (*reset)(HstHistogram2D *); /* signals */ void (*changed)(HstHistogram2D *); } HstHistogram2DClass;
HstHistogram2D* hst_histogram2d_new (int nx, double xmin, double xmax, int ny, double ymin, double ymax, gdouble *ptr);
Creates a new HstHistogram2D
|
number of bins in X axis |
|
minimum value of X |
|
maximum value of Y |
|
number of bins in Y axis |
|
minimum value of Y |
|
maximum value of Y |
|
a pointer where the data will be stored. If NULL, a new one will be created. |
Returns : |
a pointer to the new HstHistogram2D |
void hst_histogram2d_fill (HstHistogram2D *h2d, double x, double y, double w);
This function will increase the contents of the cell corresponding
to x
and y
by w
. It will emmit the ::changed signal
|
a HstHistogram2D |
|
value of x |
|
value of y |
|
weight |
int hst_histogram2d_get_stats (HstHistogram2D *h2d, HstStats *s);
Copies into s
the contents of the hst
stats
|
a HstHistogram2D |
|
a pointer to a HstStats |
Returns : |
an integer |
void hst_histogram2d_reset (HstHistogram2D *h2d);
Resets the contents of the histogram. It will emmit the ::changed signal
|
a HstHistogram2D |
"changed"
signalvoid user_function (HstHistogram2D *hsthistogram2d, gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |