/external/libvpx/libvpx/ |
D | rate_hist.c | 40 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 …]
|
D | rate_hist.h | 25 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/ |
D | rate_hist.c | 41 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 …]
|
D | rate_hist.h | 26 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/ |
D | utils_test.cc | 237 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/ |
D | histogram_ops_test.py | 113 hist = histogram_ops.histogram_fixed_width(values, value_range, nbins=5) 114 self.assertEqual(dtypes.int32, hist.dtype) 115 self.assertAllClose(expected_bin_counts, self.evaluate(hist)) 124 hist = histogram_ops.histogram_fixed_width( 126 self.assertEqual(dtypes.int64, hist.dtype) 127 self.assertAllClose(expected_bin_counts, self.evaluate(hist)) 136 hist = histogram_ops.histogram_fixed_width(values, value_range, nbins=5) 137 self.assertEqual(dtypes.int32, hist.dtype) 138 self.assertAllClose(expected_bin_counts, self.evaluate(hist)) 147 hist = histogram_ops.histogram_fixed_width(values, value_range, nbins=5) [all …]
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | HistogramTest.cs | 37 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/libvpx/libvpx/vp9/encoder/ |
D | vp9_noise_estimate.c | 163 unsigned int hist[MAX_VAR_HIST_BINS] = { 0 }; in vp9_update_noise_estimate() local 227 hist[hist_index]++; in vp9_update_noise_estimate() 229 hist[MAX_VAR_HIST_BINS - 1]++; // Account for the tail in vp9_update_noise_estimate() 247 if (hist[0] > 10 && (hist[MAX_VAR_HIST_BINS - 1] > hist[0] >> 2)) { in vp9_update_noise_estimate() 248 hist[0] = 0; in vp9_update_noise_estimate() 249 hist[1] >>= 2; in vp9_update_noise_estimate() 250 hist[2] >>= 2; in vp9_update_noise_estimate() 251 hist[3] >>= 2; in vp9_update_noise_estimate() 252 hist[4] >>= 1; in vp9_update_noise_estimate() 253 hist[5] >>= 1; in vp9_update_noise_estimate() [all …]
|
/external/adhd/cras/src/plc/ |
D | cras_plc.c | 80 int16_t hist[PLC_HL + MSBC_FS + PLC_SBCRL + PLC_OLAL]; member 149 frame_head = &state->hist[PLC_HL]; in cras_msbc_plc_handle_good_frames() 169 memmove(state->hist, &state->hist[MSBC_FS], in cras_msbc_plc_handle_good_frames() 171 memcpy(&state->hist[PLC_HL - MSBC_FS], output, in cras_msbc_plc_handle_good_frames() 189 int pattern_match(int16_t *hist) in pattern_match() argument 195 cn = cross_correlation(&hist[PLC_HL - PLC_TL], &hist[i]); in pattern_match() 226 int16_t *frame_head = &state->hist[PLC_HL]; in cras_msbc_plc_handle_bad_frames() 242 state->best_lag = pattern_match(state->hist) + PLC_TL; in cras_msbc_plc_handle_bad_frames() 243 best_match_hist = &state->hist[state->best_lag]; in cras_msbc_plc_handle_bad_frames() 244 scaler = amplitude_match(&state->hist[PLC_HL - MSBC_FS], in cras_msbc_plc_handle_bad_frames() [all …]
|
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-multihist.tc | 21 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`
|
D | trigger-hist.tc | 21 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 ` ||
|
D | trigger-hist-mod.tc | 21 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 || \
|
D | trigger-trace-marker-synthetic.tc | 31 if [ ! -f events/ftrace/print/hist ]; then 45 cnt=`grep 'hitcount: *1$' events/ftrace/print/hist | wc -l` 51 grep 'hitcount: *1$' events/synthetic/latency/hist > /dev/null || \
|
D | trigger-trace-marker-synthetic-kernel.tc | 36 if [ ! -f events/ftrace/print/hist ]; then 50 grep 'hitcount: *1$' events/ftrace/print/hist > /dev/null || \ 53 grep 'hitcount: *1$' events/synthetic/latency/hist > /dev/null || \
|
/external/grpc-grpc/src/ruby/qps/ |
D | histogram.rb | 77 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/ |
D | libstats.c | 260 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_walleye_OPM5.171019.017.A1_4.4.88/events/sched/walt_update_history/ |
D | format | 17 field:u32 hist[5]; offset:56; size:20; signed:0; 20 …hist: %u %u %u %u %u) cpu %d", REC->pid, REC->comm, REC->runtime, REC->samples, REC->evt, REC->dem…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/sched/sched_update_history/ |
D | format | 15 field:u32 hist[5]; offset:44; size:20; signed:0; 20 …hist: %u %u %u %u %u) cpu %d nr_big %u nr_small %u", REC->pid, REC->comm, REC->runtime, REC->sampl…
|
/external/bcc/examples/lua/ |
D | kprobe-latency.lua | 60 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/tensorflow/tensorflow/python/keras/distribute/ |
D | keras_premade_models_test.py | 77 hist = model.fit(inputs, output, epochs=5) 79 hist = model.fit(get_dataset(), epochs=5) 80 self.assertLess(hist.history['loss'][4], 0.2) 95 hist = wide_deep_model.fit(inputs, output, epochs=5) 97 hist = wide_deep_model.fit(get_dataset(), epochs=5) 98 self.assertLess(hist.history['loss'][4], 0.2)
|
/external/tensorflow/tensorflow/core/ops/compat/ |
D | op_compatibility_lib.cc | 152 int hist = 0; in ValidateCompatible() local 157 while (cur < op_list_.op_size() && hist < in_op_history.size()) { in ValidateCompatible() 160 const OpList& history_op_list = in_op_history[hist].second; in ValidateCompatible() 175 ++hist; in ValidateCompatible() 185 out_op_history->push_back(in_op_history[hist]); in ValidateCompatible() 221 ++hist; in ValidateCompatible() 227 if (stable_ops_ == nullptr && hist < in_op_history.size()) { in ValidateCompatible() 230 SummarizeOpDef(in_op_history[hist].second.op(0))); in ValidateCompatible()
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_HistogramFixedWidth.pbtxt | 13 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/ltp/testcases/realtime/func/sched_latency/ |
D | sched_latency.c | 75 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/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
D | trigger-field-variable-support.tc | 28 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then 32 if ! grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then 38 if grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
|
/external/grpc-grpc/src/python/grpcio_tests/tests/qps/ |
D | benchmark_client.py | 46 def __init__(self, server, config, hist): argument 73 self._hist = hist 99 def __init__(self, server, config, hist): argument 100 super(UnarySyncBenchmarkClient, self).__init__(server, config, hist) 176 def __init__(self, server, config, hist): argument 177 super(StreamingSyncBenchmarkClient, self).__init__(server, config, hist)
|