/art/runtime/base/ |
histogram_test.cc | 26 // Histogram *hist(new Histogram("SimplePercentiles")); 28 // hist->AddValue(121); 29 // hist->AddValue(132); 30 // hist->AddValue(140); 31 // hist->AddValue(145); 32 // hist->AddValue(155); 33 // hist->CreateHistogram(); 34 // PerValue = hist->PercentileVal(0.50); finds the 50th percentile(median). 37 std::unique_ptr<Histogram<uint64_t>> hist(new Histogram<uint64_t>("MeanTest", 5)); 41 hist->AddValue(static_cast<uint64_t>(50)) [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/util/ |
color_histogram_unittest.py | 59 hist = image_util.GetColorHistogram(bmp) 61 self.assertEquals(sum(hist[i]), 63 self.assertEquals(hist.r[1], 0) 64 self.assertEquals(hist.r[5], 2) 65 self.assertEquals(hist.r[8], 2) 66 self.assertEquals(hist.g[2], 0) 67 self.assertEquals(hist.g[4], 2) 68 self.assertEquals(hist.g[7], 2) 69 self.assertEquals(hist.b[3], 0) 70 self.assertEquals(hist.b[6], 4 [all...] |
/external/libvpx/libvpx/ |
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,
|
rate_hist.c | 40 struct rate_hist *hist = calloc(1, sizeof(*hist)); local 42 if (hist == NULL || cfg == NULL || fps == NULL || fps->num == 0 || 44 destroy_rate_histogram(hist); 51 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; 54 if (hist->samples == 0) hist->samples = 1; 56 hist->frames = 0; 57 hist->total = 0; 59 hist->pts = calloc(hist->samples, sizeof(*hist->pts)) [all...] |
/external/opencv/cv/src/ |
cvcalccontrasthistogram.cpp | 46 CvHistogram* hist, int dont_clear )) 50 CvHistogram* hist, int dont_clear )) 63 CvHistogram* hist, int dont_clear ) 68 if( !hist || !img ) 71 dims = hist->c_dims; 75 if( hist->type != CV_HIST_ARRAY ) 82 for( i = 0; i < hist->c_dims; i++ ) 84 if( !hist->thresh[i] ) 86 assert( hist->chdims[i] ); 89 j = hist->dims[0] * hist->mdims[0] [all...] |
cvhistogram.cpp | 47 CvHistogram *hist = 0; local 58 CV_CALL( hist = (CvHistogram *)cvAlloc( sizeof( CvHistogram ))); 60 hist->type = CV_HIST_MAGIC_VAL; 61 hist->thresh2 = 0; 62 hist->bins = 0; 65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, 67 CV_CALL( cvCreateData( hist->bins )); 71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); 79 CV_CALL( cvSetHistBinRanges( hist, ranges, uniform )) 2313 CvHistogram* hist = 0; local 2461 const CvHistogram * hist = (const CvHistogram *) struct_ptr; local [all...] |
cvthresh.cpp | 197 icvGetThreshVal_Otsu( const CvHistogram* hist ) 214 if( !CV_IS_HIST(hist) || CV_IS_SPARSE_HIST(hist) || hist->mat.dims != 1 ) 218 count = hist->mat.dim[0].size; 219 h = (float*)cvPtr1D( hist->bins, 0 ); 221 if( !CV_HIST_HAS_RANGES(hist) || CV_IS_UNIFORM_HIST(hist) ) 223 if( CV_HIST_HAS_RANGES(hist) ) 225 low = hist->thresh[0][0] 299 CvHistogram* hist = 0; local [all...] |
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/ |
trigger-multihist.tc | 26 if [ ! -f events/sched/sched_process_fork/hist ]; then 27 echo "hist trigger is not supported" 38 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger 39 echo 'hist:keys=parent_comm:vals=child_pid' >> events/sched/sched_process_fork/trigger 41 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \ 42 fail "hist trigger on sched_process_fork did not work" 43 grep child events/sched/sched_process_fork/hist > /dev/null || \ 44 fail "hist trigger on sched_process_fork did not work" 46 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 53 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_fork/trigge [all...] |
trigger-hist-mod.tc | 26 if [ ! -f events/sched/sched_process_fork/hist ]; then 27 echo "hist trigger is not supported" 36 echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/trigger 39 grep "common_pid: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 46 echo 'hist:keys=parent_pid.hex' > events/sched/sched_process_fork/trigger 50 grep "parent_pid: $HEX" events/sched/sched_process_fork/hist > /dev/null || \ 57 echo 'hist:keys=id.syscall' > events/raw_syscalls/sys_exit/trigger 59 grep "id: sys_" events/raw_syscalls/sys_exit/hist > /dev/null || \ 67 echo 'hist:keys=bytes_req.log2' > events/kmem/kmalloc/trigger 69 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || [all...] |
trigger-hist.tc | 26 if [ ! -f events/sched/sched_process_fork/hist ]; then 27 echo "hist trigger is not supported" 36 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger 38 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \ 39 fail "hist trigger on sched_process_fork did not work" 40 grep child events/sched/sched_process_fork/hist > /dev/null || \ 41 fail "hist trigger on sched_process_fork did not work" 47 echo 'hist:keys=parent_pid,child_pid' > events/sched/sched_process_fork/trigger 49 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \ 56 echo 'hist:keys=parent_comm' > events/sched/sched_process_fork/trigge [all...] |
/external/blktrace/btt/ |
unplug_hist.c | 30 int hist[NBKTS * sizeof(int)]; member in struct:hist_bkt 41 memset(hbp->hist, 0, NBKTS * sizeof(int)); 60 hbp->hist[idx]++; 78 fprintf(fp, "%d %d\n", i, hbp->hist[i]);
|
/prebuilts/go/darwin-x86/src/compress/flate/ |
dict_decoder.go | 28 hist []byte // Sliding window history 30 // Invariant: 0 <= rdPos <= wrPos <= len(hist) 32 rdPos int // Have emitted hist[:rdPos] already 40 *dd = dictDecoder{hist: dd.hist} 42 if cap(dd.hist) < size { 43 dd.hist = make([]byte, size) 45 dd.hist = dd.hist[:size] 47 if len(dict) > len(dd.hist) { [all...] |
/prebuilts/go/linux-x86/src/compress/flate/ |
dict_decoder.go | 28 hist []byte // Sliding window history 30 // Invariant: 0 <= rdPos <= wrPos <= len(hist) 32 rdPos int // Have emitted hist[:rdPos] already 40 *dd = dictDecoder{hist: dd.hist} 42 if cap(dd.hist) < size { 43 dd.hist = make([]byte, size) 45 dd.hist = dd.hist[:size] 47 if len(dict) > len(dd.hist) { [all...] |
/external/libedit/examples/ |
tc1.c | 137 History *hist; local 146 hist = history_init(); /* Init the builtin history */ 148 history(hist, &ev, H_SETSIZE, 100); 160 el_set(el, EL_HIST, history, hist); 222 if (history(hist, &ev, H_SET, lastevent) == -1) 224 history(hist, &ev, H_ADD , buf); 226 history(hist, &ev, H_ENTER, buf); 231 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf); 254 for (rv = history(hist, &ev, H_LAST); rv != -1; 255 rv = history(hist, &ev, H_PREV) [all...] |
wtc1.c | 114 HistoryW *hist; local 127 hist = history_winit(); /* Init built-in history */ 128 history_w(hist, &ev, H_SETSIZE, 100); /* Remember 100 events */ 129 history_w(hist, &ev, H_LOAD, hfile); 139 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? */ 193 history_w(hist, &ev, continuation ? H_APPEND : H_ENTER, line); 214 for(rc = history_w(hist, &ev, H_LAST); 216 rc = history_w(hist, &ev, H_PREV)) 222 history_w(hist, &ev, H_CLEAR); 228 history_w(hist, &ev, H_LOAD [all...] |
/external/libvorbis/vq/ |
bookutil.h | 39 extern void build_tree_from_lengths(int vals, long *hist, long *lengths); 40 extern void build_tree_from_lengths0(int vals, long *hist, long *lengths);
|
/cts/apps/CameraITS/tests/inprog/ |
test_param_black_level_lock.py | 58 hist,_ = numpy.histogram(yimg*255, 256, (0,256)) 59 modes.append(numpy.argmax(hist)) 63 pylab.plot(range(16), hist.tolist()[:16])
|
/external/ltp/testcases/realtime/lib/ |
libstats.c | 260 int stats_hist(stats_container_t * hist, stats_container_t * data) 269 if (hist->size <= 0 || data->index < 0) { 284 width = MAX((max - min) / hist->size, 1); 285 hist->records[0].x = min; 286 for (i = 1; i < (hist->size); i++) { 287 hist->records[i].x = min + i * width; 293 b = MIN((y - min) / width, hist->size - 1); 294 hist->records[b].y++; 300 void stats_hist_print(stats_container_t * hist) 303 for (i = 0; i < hist->size; i++) [all...] |
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
ColorCutQuantizer.java | 95 final int[] hist = mHistogram = new int[1 << (QUANTIZE_WORD_WIDTH * 3)]; local 101 hist[quantizedColor]++; 110 for (int color = 0; color < hist.length; color++) { 111 if (hist[color] > 0 && shouldIgnoreColor(color)) { 113 hist[color] = 0; 115 if (hist[color] > 0) { 128 for (int color = 0; color < hist.length; color++) { 129 if (hist[color] > 0) { 142 mQuantizedColors.add(new Swatch(approximateToRgb888(color), hist[color])); 266 final int[] hist = mHistogram local 362 final int[] hist = mHistogram; local 391 final int[] hist = mHistogram; local [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
ColorCutQuantizer.java | 75 final int[] hist = mHistogram = new int[1 << (QUANTIZE_WORD_WIDTH * 3)]; local 81 hist[quantizedColor]++; 90 for (int color = 0; color < hist.length; color++) { 91 if (hist[color] > 0 && shouldIgnoreColor(color)) { 93 hist[color] = 0; 95 if (hist[color] > 0) { 108 for (int color = 0; color < hist.length; color++) { 109 if (hist[color] > 0) { 122 mQuantizedColors.add(new Swatch(approximateToRgb888(color), hist[color])); 246 final int[] hist = mHistogram local 342 final int[] hist = mHistogram; local 373 final int[] hist = mHistogram; local [all...] |
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
BitmapUtils.java | 47 ScriptIntrinsicHistogram hist = ScriptIntrinsicHistogram.create(rs, Element.U8_4(rs)); local 53 hist.setOutput(sums); 54 hist.forEach(input);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
IntrinsicHistogram.java | 100 ScriptIntrinsicHistogram hist = local 102 hist.setOutput(mAout); 103 hist.forEach(mAin, makeClipper(x1, y1, x2, y2)); 111 hist.destroy(); 226 ScriptIntrinsicHistogram hist = local 228 hist.setOutput(mAout); 229 hist.setDotCoefficients(dotVals[0], dotVals[1], dotVals[2], dotVals[3]); 230 hist.forEach_Dot(mAin, makeClipper(x1, y1, x2, y2)); 238 hist.destroy();
|
/external/ltp/testcases/realtime/func/async_handler/ |
async_handler.c | 119 stats_container_t hist; local 123 stats_container_init(&hist, HIST_BUCKETS); 162 stats_hist(&hist, &dat); 166 stats_container_save("hist", 168 "Latency (us)", "Samples", &hist, "steps");
|
/external/ltp/testcases/realtime/include/ |
libstats.h | 144 /* stats_hist - calculate a histogram with hist->size divisions from data 145 * hist: the destination of the histogram data 148 int stats_hist(stats_container_t *hist, stats_container_t *data); 151 * hist: the stats_container containing the histogram data 153 void stats_hist_print(stats_container_t *hist);
|
/toolchain/binutils/binutils-2.25/gprof/ |
hist.c | 0 /* hist.c - Histogram related operations. 31 #include "hist.h" 303 sym->hist.scaled_addr = sym->addr / sizeof (UNIT); 307 bin_of_entry = (sym->hist.scaled_addr - r->lowpc) / hist_scale; 308 bin_of_code = ((sym->hist.scaled_addr + UNITS_TO_CODE - r->lowpc) 314 (unsigned long) sym->hist.scaled_addr, 315 (unsigned long) (sym->hist.scaled_addr 317 sym->hist.scaled_addr += UNITS_TO_CODE; 398 sym_low_pc = symtab.base[j].hist.scaled_addr; 399 sym_high_pc = symtab.base[j + 1].hist.scaled_addr [all...] |