HstFunction2D

HstFunction2D

Synopsis

#include <gtk-hst/function2d.h>


#define             HST_FUNCTION2D_X                    (obj)
#define             HST_FUNCTION2D_Y                    (obj)
                    HstFunction2D;
                    HstFunction2DClass;
HstFunction2D*      hst_function2d_new                  (int n,
                                                         double xmin,
                                                         double xmax,
                                                         int ny,
                                                         double ymin,
                                                         double ymax,
                                                         Hst2DFunction ptr);
double              hst_function2d_eval                 (HstFunction2D *h2d,
                                                         double x,
                                                         double y);
int                 hst_function2d_find_bin_from_cell   (HstFunction2D *h2d,
                                                         int ix,
                                                         int iy);
void                hst_function2d_find_cell_from_bin   (HstFunction2D *h2d,
                                                         int ib,
                                                         int *ix,
                                                         int *iy);
HstFunction*        hst_function2d_X                    (HstFunction2D *h2d);
HstFunction*        hst_function2d_Y                    (HstFunction2D *h2d);
double              (*Hst2DFunction)                    (double ,
                                                         double );


Object Hierarchy

  GObject
   +----HstFunction
         +----HstFunction2D
               +----HstHistogram2D

Properties

  "npts"                     gint                  : Read
  "ny"                       gint                  : Read / Write
  "ymax"                     gdouble               : Read / Write
  "ymin"                     gdouble               : Read / Write
  "ystep"                    gdouble               : Read / Write

Description

Details

HST_FUNCTION2D_X()

#define HST_FUNCTION2D_X(obj) (HST_FUNCTION(obj))

obj :


HST_FUNCTION2D_Y()

#define HST_FUNCTION2D_Y(obj) (HST_FUNCTION2D(obj)->Y)

obj :


HstFunction2D

typedef struct _HstFunction2D HstFunction2D;


HstFunction2DClass

typedef struct {
    HstFunctionClass parent_class;
    
    double (*eval2d)(HstFunction2D *,double,double);
} HstFunction2DClass;


hst_function2d_new ()

HstFunction2D*      hst_function2d_new                  (int n,
                                                         double xmin,
                                                         double xmax,
                                                         int ny,
                                                         double ymin,
                                                         double ymax,
                                                         Hst2DFunction ptr);

n :

xmin :

xmax :

ny :

ymin :

ymax :

ptr :

Returns :


hst_function2d_eval ()

double              hst_function2d_eval                 (HstFunction2D *h2d,
                                                         double x,
                                                         double y);

h2d :

x :

y :

Returns :


hst_function2d_find_bin_from_cell ()

int                 hst_function2d_find_bin_from_cell   (HstFunction2D *h2d,
                                                         int ix,
                                                         int iy);

h2d :

ix :

iy :

Returns :


hst_function2d_find_cell_from_bin ()

void                hst_function2d_find_cell_from_bin   (HstFunction2D *h2d,
                                                         int ib,
                                                         int *ix,
                                                         int *iy);

h2d :

ib :

ix :

iy :


hst_function2d_X ()

HstFunction*        hst_function2d_X                    (HstFunction2D *h2d);

h2d :

Returns :


hst_function2d_Y ()

HstFunction*        hst_function2d_Y                    (HstFunction2D *h2d);

h2d :

Returns :


Hst2DFunction ()

double              (*Hst2DFunction)                    (double ,
                                                         double );

Param1 :

Param2 :

Returns :

Property Details

The "npts" property

  "npts"                     gint                  : Read

Number of points (nx x ny).

Allowed values: [1,999999]

Default value: 10


The "ny" property

  "ny"                       gint                  : Read / Write

Number of points in Y.

Allowed values: [1,999999]

Default value: 10


The "ymax" property

  "ymax"                     gdouble               : Read / Write

Maximum value of Y.

Default value: 1


The "ymin" property

  "ymin"                     gdouble               : Read / Write

Minimum value of Y.

Default value: 0


The "ystep" property

  "ystep"                    gdouble               : Read / Write

step in Y.

Default value: 1