• Home
  • Raw
  • Download

Lines Matching refs:records

75 	data->records = calloc(size, sizeof(stats_record_t));  in stats_container_init()
76 if (!data->records) in stats_container_init()
90 data->records[myindex] = rec; in stats_container_append()
97 realloc(data->records, size * sizeof(stats_record_t)); in stats_container_resize()
100 data->records = newrecords; in stats_container_resize()
102 memset(data->records + data->size, 0, size - data->size); in stats_container_resize()
109 free(data->records); in stats_container_free()
116 qsort(data->records, data->index + 1, sizeof(stats_record_t), in stats_sort()
133 sum += data->records[i].y; in stats_stddev()
140 delta = (data->records[i].y - avg); in stats_stddev()
161 sum += data->records[i].y; in stats_avg()
177 min = data->records[0].y; in stats_min()
179 if (data->records[i].y < min) { in stats_min()
180 min = data->records[i].y; in stats_min()
196 max = data->records[0].y; in stats_max()
198 if (data->records[i].y > max) { in stats_max()
199 max = data->records[i].y; in stats_max()
244 quantiles->quantiles[i - 2] = data->records[index].y; in stats_quantiles_calc()
274 min = max = data->records[0].y; in stats_hist()
276 y = data->records[i].y; in stats_hist()
285 hist->records[0].x = min; in stats_hist()
287 hist->records[i].x = min + i * width; in stats_hist()
292 y = data->records[i].y; in stats_hist()
294 hist->records[b].y++; in stats_hist()
304 x = hist->records[i].x; in stats_hist_print()
307 hist->records[i + 1].x, hist->records[i].y); in stats_hist_print()
309 printf("[%ld,-) = %ld\n", x, hist->records[i].y); in stats_hist_print()
344 minx = maxx = data->records[0].x; in stats_container_save()
345 miny = maxy = data->records[0].y; in stats_container_save()
347 rec = &data->records[i]; in stats_container_save()