3 #define HIST_VERSION "1.3"
10 struct optheader
*next
;
13 typedef struct hist_s
{
15 double max
, min
, sum
, sum2
, sum3
, sum4
;
17 unsigned int num_points
, num_bins
;
19 unsigned int num_outer
, max_num_outer
;
23 struct optheader
*firstoptheader
;
28 hist_t
*histogram(char *name
, unsigned int num_bins
, double first
,
31 void set_outer(unsigned int max_num_outer
, hist_t
*hist
);
33 void enable_skew(hist_t
*hist
);
35 void add_field(char *key
, char *value
, hist_t
*hist
);
37 void add_field_n(char *key
, int value
, hist_t
*hist
);
39 void record(double point
, hist_t
*hist
);
41 void report_to(FILE *strm
, hist_t
*hist
);
47 double get_mean(HIST hist
);
49 double get_min(HIST hist
);
51 double get_max(HIST hist
);
53 double get_variance(HIST hist
);
55 double get_num(HIST hist
);
57 void set_mean(HIST hist
, double mean
);
59 void set_min(HIST hist
, double min
);
61 void set_max(HIST hist
, double max
);
63 void set_variance(HIST hist
, double variance
);
65 void add_histogram(HIST dest
, HIST source
);
67 double histfloor(double x
);