HstProfile

HstProfile — A object to study the dependency of one variable with respect to other by storing the mean value of the former w.r.t. the later.

Synopsis

#include <gtk-hst/profile.h>


                    HstProfile;
                    HstProfileClass;
HstProfile*         hst_profile_new                     (int n,
                                                         double xmin,
                                                         double xmax,
                                                         gdouble *ptr);
void                hst_profile_fill                    (HstProfile *hst,
                                                         double x,
                                                         double y,
                                                         double w);


Object Hierarchy

  GObject
   +----HstFunction
         +----HstHistogram
               +----HstProfile

Description

Details

HstProfile

typedef struct _HstProfile HstProfile;


HstProfileClass

typedef struct {
    HstHistogramClass parent_class;
} HstProfileClass;


hst_profile_new ()

HstProfile*         hst_profile_new                     (int n,
                                                         double xmin,
                                                         double xmax,
                                                         gdouble *ptr);

This is a convenience function to create a HstProfile and setting its properties in one go.

n :

number of bins in the histogram

xmin :

lower range of the X axis

xmax :

upper range of the X axis

ptr :

a pointer to an array of doubles. HstHistogram will use it internally as the contents of the histogram. It can be used to monitor a given array or to retrieve or fill the buffer with the contents of the histogram

Returns :

a HstProfile pointer

hst_profile_fill ()

void                hst_profile_fill                    (HstProfile *hst,
                                                         double x,
                                                         double y,
                                                         double w);

hst :

pointer of a HstProfile object

x :

value for X

y :

value for Y that will be averaged

w :

weight