Lines Matching refs:num_data_items
17 int num_data_items = 0; variable
59 if (num_data_items == DATA_COUNT) { in main()
64 sscanf(in_buf, "%lf", &data_items[num_data_items]); in main()
66 printf("%lf\n", data_items[num_data_items]); in main()
68 num_data_items++; in main()
70 if (num_data_items == 0) { in main()
75 printf("Total items %lu\n", num_data_items); in main()
77 for (i = 0 ; i < num_data_items ; i++) { in main()
81 mean = sum_x / num_data_items; in main()
83 std_dev = sqrt((sum_sq_x / num_data_items) - (mean * mean)); in main()
92 for (i = 0 ; i < num_data_items ; i++) { in main()
104 ((double)one_sd * 100) / num_data_items); in main()
106 ((double)two_sd * 100) / num_data_items); in main()
108 ((double)three_sd* 100) / num_data_items); in main()
110 ((double)(num_data_items - three_sd) * 100) / num_data_items); in main()
112 qsort(data_items, num_data_items, sizeof(u_int64_t), compare_double); in main()
113 printf("\t50th percentile %lf\n", data_items[num_data_items / 2]); in main()
114 printf("\t75th percentile %lf\n", data_items[(3 * num_data_items) / 4]); in main()
115 printf("\t90th percentile %lf\n", data_items[(9 * num_data_items) / 10]); in main()
116 printf("\t99th percentile %lf\n", data_items[(99 * num_data_items) / 100]); in main()