![]() |
![]() |
![]() |
gtk-hst reference manual | ![]() |
---|---|---|---|---|
#include <gtk-hst/stats.h> HstStats; HstStatsClass; HstStats* hst_stats_new (); gdouble hst_stats_get_nc (HstStats *self); gdouble hst_stats_get_mean (HstStats *self, int w); gdouble hst_stats_get_rms (HstStats *self, int w); gdouble hst_stats_get_stdev (HstStats *self, int w); gdouble hst_stats_get_min (HstStats *self, int w); gdouble hst_stats_get_max (HstStats *self, int w); gdouble hst_stats_get_correlation (HstStats *self); void hst_stats_add (HstStats *self, double x, double y, double w); void hst_stats_reset (HstStats *self);
"corr" gdouble : Read "mean-x" gdouble : Read "mean-y" gdouble : Read "nc" gdouble : Read "rms-x" gdouble : Read "rms-y" gdouble : Read "stdev-x" gdouble : Read "stdev-y" gdouble : Read "xmax" gdouble : Read "xmin" gdouble : Read "ymax" gdouble : Read "ymin" gdouble : Read
HstStats* hst_stats_new ();
This is a convinience function to a create a HstStats object.
Returns : |
a HstStats object. |
gdouble hst_stats_get_nc (HstStats *self);
|
a HstStats object |
Returns : |
the number of entries |
gdouble hst_stats_get_mean (HstStats *self, int w);
|
a HstStats object |
|
specifies which of the 2 variables is to be considered. (=0) is X and (=1) is Y. |
Returns : |
the mean value of the selected variable |
gdouble hst_stats_get_rms (HstStats *self, int w);
|
a HstStats object |
|
specifies which of the 2 variables is to be considered. (=0) is X and (=1) is Y. |
Returns : |
the RMS of the selected variable |
gdouble hst_stats_get_stdev (HstStats *self, int w);
|
a HstStats object |
|
specifies which of the 2 variables is to be considered. (=0) is X and (=1) is Y. |
Returns : |
the standard deviation of the selected variable |
gdouble hst_stats_get_min (HstStats *self, int w);
|
a HstStats object |
|
specifies which of the 2 variables is to be considered. (=0) is X and (=1) is Y. |
Returns : |
the minimum value of the selected variable |
gdouble hst_stats_get_max (HstStats *self, int w);
|
a HstStats object |
|
specifies which of the 2 variables is to be considered. (=0) is X and (=1) is Y. |
Returns : |
the maximum value of the selected variable |
gdouble hst_stats_get_correlation (HstStats *self);
|
a HstStats object |
Returns : |
the correlation between X and Y |
void hst_stats_add (HstStats *self, double x, double y, double w);
Adds a new point with a given point
|
a HstStats object |
|
value of X |
|
value of Y |
|
the weight of this point |