Use =default for skeleton copy constructor
[ACE_TAO.git] / ACE / performance-tests / SCTP / hist.h
blob4aae40379c9d38f2ba1073fbf6c71ca7f66f003e
1 #include <stdio.h>
3 #define HIST_VERSION "1.3"
5 namespace ACE_SCTP
7 struct optheader {
8 char *key;
9 char *value;
10 struct optheader *next;
13 typedef struct hist_s {
14 char *name;
15 double max, min, sum, sum2, sum3, sum4;
16 double first, last;
17 unsigned int num_points, num_bins;
18 unsigned int *hs;
19 unsigned int num_outer, max_num_outer;
20 double *outer;
21 struct hist_s *next;
22 int skew;
23 struct optheader *firstoptheader;
24 } hist_t;
26 #define HIST hist_t *
28 hist_t *histogram(char *name, unsigned int num_bins, double first,
29 double last);
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);
43 void report();
45 void stats_init();
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);