Home
last modified time | relevance | path

Searched refs:hist (Results 1 – 25 of 122) sorted by relevance

12345

/external/libvpx/libvpx/
Drate_hist.c40 struct rate_hist *hist = calloc(1, sizeof(*hist)); in init_rate_histogram() local
42 if (hist == NULL || cfg == NULL || fps == NULL || fps->num == 0 || in init_rate_histogram()
44 destroy_rate_histogram(hist); in init_rate_histogram()
51 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; in init_rate_histogram()
54 if (hist->samples == 0) hist->samples = 1; in init_rate_histogram()
56 hist->frames = 0; in init_rate_histogram()
57 hist->total = 0; in init_rate_histogram()
59 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); in init_rate_histogram()
60 hist->sz = calloc(hist->samples, sizeof(*hist->sz)); in init_rate_histogram()
62 hist->bucket[i].low = INT_MAX; in init_rate_histogram()
[all …]
Drate_hist.h25 void destroy_rate_histogram(struct rate_hist *hist);
27 void update_rate_histogram(struct rate_hist *hist,
33 void show_rate_histogram(struct rate_hist *hist, const vpx_codec_enc_cfg_t *cfg,
/external/libaom/libaom/stats/
Drate_hist.c41 struct rate_hist *hist = malloc(sizeof(*hist)); in init_rate_histogram() local
46 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; in init_rate_histogram()
49 if (hist->samples == 0) hist->samples = 1; in init_rate_histogram()
51 hist->frames = 0; in init_rate_histogram()
52 hist->total = 0; in init_rate_histogram()
54 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); in init_rate_histogram()
55 hist->sz = calloc(hist->samples, sizeof(*hist->sz)); in init_rate_histogram()
57 hist->bucket[i].low = INT_MAX; in init_rate_histogram()
58 hist->bucket[i].high = 0; in init_rate_histogram()
59 hist->bucket[i].count = 0; in init_rate_histogram()
[all …]
Drate_hist.h26 void destroy_rate_histogram(struct rate_hist *hist);
28 void update_rate_histogram(struct rate_hist *hist,
34 void show_rate_histogram(struct rate_hist *hist, const aom_codec_enc_cfg_t *cfg,
/external/tensorflow/tensorflow/core/grappler/costs/
Dutils_test.cc237 TestTensorSizeHistogram hist; in TEST() local
238 EXPECT_EQ(0, hist.NumElem()); in TEST()
239 EXPECT_EQ(0, hist.SumElem()); in TEST()
240 EXPECT_LT(1000000000, hist.Min()); // Initially, min_ is a very large value. in TEST()
241 EXPECT_EQ(0, hist.Max()); in TEST()
242 EXPECT_EQ(0.0, hist.Average()); in TEST()
243 const auto& buckets = hist.GetBuckets(); in TEST()
250 TestTensorSizeHistogram hist; in TEST() local
251 EXPECT_EQ(0, hist.Index(0)); in TEST()
252 EXPECT_EQ(1, hist.Index(1)); in TEST()
[all …]
/external/tensorflow/tensorflow/python/ops/
Dhistogram_ops_test.py114 hist = histogram_ops.histogram_fixed_width(values, value_range, nbins=5)
115 self.assertEqual(dtypes.int32, hist.dtype)
116 self.assertAllClose(expected_bin_counts, self.evaluate(hist))
125 hist = histogram_ops.histogram_fixed_width(
127 self.assertEqual(dtypes.int64, hist.dtype)
128 self.assertAllClose(expected_bin_counts, self.evaluate(hist))
137 hist = histogram_ops.histogram_fixed_width(values, value_range, nbins=5)
138 self.assertEqual(dtypes.int32, hist.dtype)
139 self.assertAllClose(expected_bin_counts, self.evaluate(hist))
148 hist = histogram_ops.histogram_fixed_width(values, value_range, nbins=5)
[all …]
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DHistogramTest.cs37 var hist = new Histogram(0.01, 60e9); in Simple()
38 hist.AddObservation(10000); in Simple()
39 hist.AddObservation(10000); in Simple()
40 hist.AddObservation(11000); in Simple()
41 hist.AddObservation(11000); in Simple()
43 var data = hist.GetSnapshot(); in Simple()
59 var hist = new Histogram(0.01, 60e9); in ExtremeObservations()
60 hist.AddObservation(-0.5); // should be in the first bucket in ExtremeObservations()
61 hist.AddObservation(1e12); // should be in the last bucket in ExtremeObservations()
63 var data = hist.GetSnapshot(); in ExtremeObservations()
[all …]
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-multihist.tc21 if [ ! -f events/sched/sched_process_fork/hist ]; then
31 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
33 grep child events/sched/sched_process_fork/hist > /dev/null || \
36 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
45 grep test_hist events/sched/sched_process_fork/hist > /dev/null || \
52 grep test_hist events/sched/sched_process_exit/hist > /dev/null || \
55 diffs=`diff events/sched/sched_process_exit/hist events/sched/sched_process_fork/hist | wc -l`
Dtrigger-hist.tc21 if [ ! -f events/sched/sched_process_fork/hist ]; then
30 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
32 grep child events/sched/sched_process_fork/hist > /dev/null || \
41 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \
51 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
69 events/sched/sched_process_fork/hist | cut -d: -f2 ` ||
Dtrigger-hist-mod.tc21 if [ ! -f events/sched/sched_process_fork/hist ]; then
31 grep "common_pid: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
42 grep "parent_pid: $HEX" events/sched/sched_process_fork/hist > /dev/null || \
51 grep "id: \(unknown_\|sys_\)" events/raw_syscalls/sys_exit/hist > /dev/null || \
61 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || \
/external/grpc-grpc/src/ruby/qps/
Dhistogram.rb77 def merge(hist) argument
79 @min_seen = hist.min_seen
80 @max_seen = hist.max_seen
81 @sum += hist.sum
82 @sum_of_squares += hist.sum_of_squares
83 @count += hist.count
84 received_bucket = hist.bucket.to_a
/external/ltp/testcases/realtime/lib/
Dlibstats.c260 int stats_hist(stats_container_t * hist, stats_container_t * data) in stats_hist() argument
269 if (hist->size <= 0 || data->index < 0) { in stats_hist()
284 width = MAX((max - min) / hist->size, 1); in stats_hist()
285 hist->records[0].x = min; in stats_hist()
286 for (i = 1; i < (hist->size); i++) { in stats_hist()
287 hist->records[i].x = min + i * width; in stats_hist()
293 b = MIN((y - min) / width, hist->size - 1); in stats_hist()
294 hist->records[b].y++; in stats_hist()
300 void stats_hist_print(stats_container_t * hist) in stats_hist_print() argument
303 for (i = 0; i < hist->size; i++) { in stats_hist_print()
[all …]
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/sched/sched_update_history/
Dformat15 field:u32 hist[5]; offset:44; size:20; signed:0;
20hist: %u %u %u %u %u) cpu %d nr_big %u nr_small %u", REC->pid, REC->comm, REC->runtime, REC->sampl…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/sched/walt_update_history/
Dformat17 field:u32 hist[5]; offset:56; size:20; signed:0;
20hist: %u %u %u %u %u) cpu %d", REC->pid, REC->comm, REC->runtime, REC->samples, REC->evt, REC->dem…
/external/bcc/examples/lua/
Dkprobe-latency.lua60 local hist, events = {}, 0
64 hist[i] = hist[i] or 0 + v
71 if hist[i] then
72 local c = math.ceil((hist[i] / (events + 1)) * #sym)
/external/deqp-deps/SPIRV-Tools/tools/stats/
Dstats_analyzer.cpp73 const std::unordered_map<Key, uint32_t>& hist, uint64_t total) { in GetRecall() argument
75 for (const auto& pair : hist) { in GetRecall()
85 const std::unordered_map<Key, uint32_t>& hist) { in GetPrevalence() argument
87 for (const auto& pair : hist) { in GetPrevalence()
91 return GetRecall(hist, total); in GetPrevalence()
206 const std::unordered_map<uint32_t, uint32_t>& hist = kv.second; in WriteOpcodeMarkov() local
209 for (const auto& pair : hist) { in WriteOpcodeMarkov()
213 std::vector<std::pair<uint32_t, uint32_t>> sorted_hist(hist.begin(), in WriteOpcodeMarkov()
214 hist.end()); in WriteOpcodeMarkov()
/external/swiftshader/third_party/SPIRV-Tools/tools/stats/
Dstats_analyzer.cpp73 const std::unordered_map<Key, uint32_t>& hist, uint64_t total) { in GetRecall() argument
75 for (const auto& pair : hist) { in GetRecall()
85 const std::unordered_map<Key, uint32_t>& hist) { in GetPrevalence() argument
87 for (const auto& pair : hist) { in GetPrevalence()
91 return GetRecall(hist, total); in GetPrevalence()
206 const std::unordered_map<uint32_t, uint32_t>& hist = kv.second; in WriteOpcodeMarkov() local
209 for (const auto& pair : hist) { in WriteOpcodeMarkov()
213 std::vector<std::pair<uint32_t, uint32_t>> sorted_hist(hist.begin(), in WriteOpcodeMarkov()
214 hist.end()); in WriteOpcodeMarkov()
/external/libxcam/modules/ocl/
Dcl_newtonemapping_handler.cpp39 haleq(int *y, int *hist, int *hist_leq, int left, int right, int level, int index_left, int index_r… in haleq() argument
45 int num_left = left > 0 ? hist[left - 1] : 0; in haleq()
46 int pixel_num = hist[right] - num_left; in haleq()
63 haleq (y, hist, hist_leq, left, (int)(le + 0.5f), level + 1, index_left, index); in haleq()
64 haleq (y, hist, hist_leq, (int)(le + 0.5f) + 1, right, level + 1, index + 1, index_right); in haleq()
68 block_split_haleq(int* hist, int hist_bin_count, int pixel_num, int block_start_index, float* y_max… in block_split_haleq() argument
74 if(hist[i] > 0) in block_split_haleq()
83 y_avg[block_id] += i * hist[i]; in block_split_haleq()
121 hist_log[index] += hist[i]; in block_split_haleq()
130 hist_log[index] += hist[i]; in block_split_haleq()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dhuffman_codec.cpp32 static const std::map<std::string, uint32_t> hist = { in GetTestSet() local
38 return hist; in GetTestSet()
186 const std::map<uint32_t, uint32_t> hist = {{1, 10}, {2, 5}, {3, 15}}; in TEST() local
187 HuffmanCodec<uint32_t> huffman(hist); in TEST()
220 const std::map<uint64_t, uint32_t> hist = {{1001, 10}, {1002, 5}, {1003, 15}}; in TEST() local
221 HuffmanCodec<uint64_t> huffman(hist); in TEST()
238 const std::map<std::string, uint32_t> hist = { in TEST() local
240 HuffmanCodec<std::string> huffman(hist); in TEST()
/external/deqp-deps/SPIRV-Tools/test/
Dhuffman_codec.cpp32 static const std::map<std::string, uint32_t> hist = { in GetTestSet() local
38 return hist; in GetTestSet()
186 const std::map<uint32_t, uint32_t> hist = {{1, 10}, {2, 5}, {3, 15}}; in TEST() local
187 HuffmanCodec<uint32_t> huffman(hist); in TEST()
220 const std::map<uint64_t, uint32_t> hist = {{1001, 10}, {1002, 5}, {1003, 15}}; in TEST() local
221 HuffmanCodec<uint64_t> huffman(hist); in TEST()
238 const std::map<std::string, uint32_t> hist = { in TEST() local
240 HuffmanCodec<std::string> huffman(hist); in TEST()
/external/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c75 stats_container_t hist; variable
215 stats_hist(&hist, &dat); in periodic_thread()
220 "Latency (us)", "Samples", &hist, "steps"); in periodic_thread()
277 if (stats_container_init(&hist, HIST_BUCKETS)) { in main()
284 stats_container_free(&hist); in main()
300 stats_container_free(&hist); in main()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_HistogramFixedWidth.pbtxt13 values <= value_range[0] will be mapped to hist[0],
14 values >= value_range[1] will be mapped to hist[-1].
42 hist = tf.histogram_fixed_width(new_values, value_range, nbins=5)
44 sess.run(hist) => [2, 1, 1, 0, 2]
/external/swiftshader/third_party/SPIRV-Tools/test/stats/
Dstats_analyzer_test.cpp152 auto& hist = stats.opcode_markov_hist[0]; in TEST() local
153 hist[SpvOpFMul][SpvOpFAdd] = 100; in TEST()
154 hist[SpvOpFMul][SpvOpFSub] = 300; in TEST()
155 hist[SpvOpFAdd][SpvOpFMul] = 100; in TEST()
156 hist[SpvOpFAdd][SpvOpFAdd] = 100; in TEST()
/external/deqp-deps/SPIRV-Tools/test/stats/
Dstats_analyzer_test.cpp152 auto& hist = stats.opcode_markov_hist[0]; in TEST() local
153 hist[SpvOpFMul][SpvOpFAdd] = 100; in TEST()
154 hist[SpvOpFMul][SpvOpFSub] = 300; in TEST()
155 hist[SpvOpFAdd][SpvOpFMul] = 100; in TEST()
156 hist[SpvOpFAdd][SpvOpFAdd] = 100; in TEST()
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/inter-event/
Dtrigger-field-variable-support.tc27 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
31 if ! grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
37 if grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then

12345