ArvStatistic

ArvStatistic — An histogram tool

Synopsis

                    ArvStatistic;
ArvStatistic *      arv_statistic_new                   (guint n_histograms,
                                                         guint n_bins,
                                                         guint bin_step,
                                                         int offset);
void                arv_statistic_free                  (ArvStatistic *statistic);
void                arv_statistic_reset                 (ArvStatistic *statistic);
gboolean            arv_statistic_fill                  (ArvStatistic *statistic,
                                                         guint histogram_id,
                                                         int value,
                                                         guint64 counter);
void                arv_statistic_set_name              (ArvStatistic *statistic,
                                                         guint histogram_id,
                                                         char const *name);
char *              arv_statistic_to_string             (const ArvStatistic *statistic);
gboolean            arv_str_parse_double                (char **str,
                                                         double *x);
void                arv_str_skip_char                   (char **str,
                                                         char c);
void                arv_str_skip_colon_and_spaces       (char **str);
void                arv_str_skip_comma_and_spaces       (char **str);
void                arv_str_skip_semicolon_and_spaces   (char **str);
void                arv_str_skip_spaces                 (char **str);

Description

Details

ArvStatistic

typedef struct _ArvStatistic ArvStatistic;

arv_statistic_new ()

ArvStatistic *      arv_statistic_new                   (guint n_histograms,
                                                         guint n_bins,
                                                         guint bin_step,
                                                         int offset);

n_histograms :

number of histograms

n_bins :

number of bins for each histogram

bin_step :

bin step

offset :

offset of the first bin Return value: a new ArvStatistic structure

arv_statistic_free ()

void                arv_statistic_free                  (ArvStatistic *statistic);

arv_statistic_reset ()

void                arv_statistic_reset                 (ArvStatistic *statistic);

arv_statistic_fill ()

gboolean            arv_statistic_fill                  (ArvStatistic *statistic,
                                                         guint histogram_id,
                                                         int value,
                                                         guint64 counter);

arv_statistic_set_name ()

void                arv_statistic_set_name              (ArvStatistic *statistic,
                                                         guint histogram_id,
                                                         char const *name);

arv_statistic_to_string ()

char *              arv_statistic_to_string             (const ArvStatistic *statistic);

arv_str_parse_double ()

gboolean            arv_str_parse_double                (char **str,
                                                         double *x);

arv_str_skip_char ()

void                arv_str_skip_char                   (char **str,
                                                         char c);

arv_str_skip_colon_and_spaces ()

void                arv_str_skip_colon_and_spaces       (char **str);

arv_str_skip_comma_and_spaces ()

void                arv_str_skip_comma_and_spaces       (char **str);

arv_str_skip_semicolon_and_spaces ()

void                arv_str_skip_semicolon_and_spaces   (char **str);

arv_str_skip_spaces ()

void                arv_str_skip_spaces                 (char **str);