/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 UniquePtr<Histogram<uint64_t> > hist(new Histogram<uint64_t>("MeanTest", 5)); 41 hist->AddValue(static_cast<uint64_t>(50)) [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...] |
/system/core/sh/ |
myhistedit.h | 37 extern History *hist;
|
histedit.c | 68 History *hist; /* history cookie */ variable 91 if (!hist) { 96 hist = history_init(); 99 if (hist != NULL) 132 if (hist) 133 el_set(el, EL_HIST, history, hist); 160 if (hist) { 161 history_end(hist); 162 hist = NULL; 175 if (hist != NULL) [all...] |
/sdk/emulator/qtools/ |
hist_trace.cpp | 8 int hist[kMaxHistEntries]; variable 43 hist[bb_diff] += 1; 51 if (hist[ii] == 0) 53 per = 100.0 * hist[ii] / total; 54 sum += hist[ii]; 56 printf(" %4d: %6d %6.2f %6.2f\n", ii - kMaxHistEntries2, hist[ii], per, sum_per);
|
/external/srec/srec/clib/ |
specnorm.c | 48 else spec->hist[spec_val - spec->low_entry] += UNIT_SIZE; 105 count += spec->hist[ii]; 111 cumval += spec->hist[ii]; 116 count += spec->hist[jj]; 117 accum += spec->hist[jj] * (jj - ii); 141 count += spec->hist[jj]; 142 accum += spec->hist[jj] * ii; 149 totcount += spec->hist[jj]; 235 spec->hist = (long *) CALLOC_CLR(high_entry - low_entry + 1, 236 sizeof(int), "clib.spec.hist"); [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]);
|
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/test/ |
ISACHist.cc | 34 unsigned long int hist[601]; local 39 hist[n] = 0; 144 hist[encodedLen]++; 152 totalFrames += hist[n]; 153 fprintf(outFile, "%10lu\n", hist[n]); 164 if(hist[n] > 0) 167 printf(" %3d %3d\n", n, hist[n]);
|
/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);
|
bookutil.c | 338 void build_tree_from_lengths(int vals, long *hist, long *lengths){ 342 memcpy(histsave,hist,vals*sizeof(long)); 356 if(least==-1 || hist[j]<=least){ 357 least=hist[j]; 362 if((least==-1 || hist[j]<=least) && membership[j]!=first){ 363 least=hist[j]; 372 least=hist[first]+hist[second]; 376 hist[j]=least; 407 void build_tree_from_lengths0(int vals, long *hist, long *lengths) [all...] |
huffbuild.c | 130 long *hist=_ogg_calloc(vals,sizeof(long)); local 133 for(j=loval;j<vals;j++)hist[j]=guard; 141 hist[val]++; 149 build_tree_from_lengths0(vals,hist,lengths);
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
malloc_extension_c_test.c | 100 int hist[64]; local 106 MallocExtension_MallocMemoryStats(&blocks, &total, hist); 134 if (MallocExtension_GetOwnership(hist) != MallocExtension_kNotOwned) {
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
malloc_extension_c_test.c | 100 int hist[64]; local 106 MallocExtension_MallocMemoryStats(&blocks, &total, hist); 134 if (MallocExtension_GetOwnership(hist) != MallocExtension_kNotOwned) {
|
/pdk/apps/CameraITS/tests/ |
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])
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
IntrinsicHistogram.java | 73 ScriptIntrinsicHistogram hist = local 75 hist.setOutput(mAout); 76 hist.forEach(mAin); 150 ScriptIntrinsicHistogram hist = local 152 hist.setOutput(mAout); 153 hist.setDotCoefficients(dotVals[0], dotVals[1], dotVals[2], dotVals[3]); 154 hist.forEach_Dot(mAin);
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageSummary.java | 132 Parcel hist = Parcel.obtain(); local 133 mStatsHelper.getStats().writeToParcelWithoutUids(hist, 0); 134 byte[] histData = hist.marshall(); 203 BatteryHistoryPreference hist = new BatteryHistoryPreference( local 205 hist.setOrder(-1); 206 mAppListGroup.addPreference(hist);
|
/external/oprofile/pp/ |
opgprof.cpp | 186 u16 * hist = (u16*)xcalloc(histsize, sizeof(u16)); local 208 if (hist[pos] + count > (u16)-1) { 209 hist[pos] = (u16)-1; 211 << hist[pos] + count - ((u16)-1) << endl; 213 hist[pos] += (u16)count; 218 op_write_file(fp, hist, histsize * sizeof(u16)); 225 free(hist);
|
/external/srec/srec/include/ |
specnorm.h | 55 long *hist; member in struct:__anon28334
|
/external/libvpx/libvpx/ |
vpxenc.c | 418 static const arg_def_t q_hist_n = ARG_DEF(NULL, "q-hist", 1, 420 static const arg_def_t rate_hist_n = ARG_DEF(NULL, "rate-hist", 1, 817 static void init_rate_histogram(struct rate_hist *hist, 826 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; 829 if (hist->samples == 0) 830 hist->samples = 1; 832 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); 833 hist->sz = calloc(hist->samples, sizeof(*hist->sz)) [all...] |
/external/opencv/cv/include/ |
cvcompat.h | 124 #define cvCalcHistMask(img, mask, hist, doNotClear) cvCalcHist(img, hist, doNotClear, mask) 479 #define cvQueryHistValue_1D( hist, idx0 ) \ 480 ((float)cvGetReal1D( (hist)->bins, (idx0))) 481 #define cvQueryHistValue_2D( hist, idx0, idx1 ) \ 482 ((float)cvGetReal2D( (hist)->bins, (idx0), (idx1))) 483 #define cvQueryHistValue_3D( hist, idx0, idx1, idx2 ) \ 484 ((float)cvGetReal3D( (hist)->bins, (idx0), (idx1), (idx2))) 485 #define cvQueryHistValue_nD( hist, idx ) \ 486 ((float)cvGetRealND( (hist)->bins, (idx)) [all...] |
cv.h | 839 CVAPI(void) cvReleaseHist( CvHistogram** hist ); variable 842 CVAPI(void) cvClearHist( CvHistogram* hist ); variable [all...] |
/external/jdiff/src/jdiff/ |
HTMLStatistics.java | 195 int[] hist = new int[101]; local 197 hist[i] = 0; 204 hist[bucket]++; 228 total += hist[i]; 231 if (hist[i] != 0) { 234 h_.writeText(" <TD>" + (hist[i]/total) + "</TD>"); 235 h_.writeText(" <TD><img alt=\"|\" src=\"../black.gif\" height=20 width=" + (hist[i]*300/total) + "></TD>"); 242 if (hist[i] != 0) { 243 h_.writeText(i + "," + (hist[i]/total)); 282 int[] hist = new int[101] local [all...] |
/external/netperf/ |
Android.mk | 21 L_COMMON_SRC := hist.h netlib.c netsh.c nettest_bsd.c nettest_dlpi.c \
|