Home
last modified time | relevance | path

Searched refs:bins (Results 1 – 24 of 24) sorted by relevance

/external/libvorbis/vq/
Ddistribution.c38 long bins=-1; in main() local
49 bins=atoi(argv[2])-1; in main()
72 bins=_book_maptype1_quantvals(c); in main()
75 bins=c->entries*c->dim; in main()
82 for(i=0;i<bins;i++){ in main()
96 long **sort=calloc(bins,sizeof(long *)); in main()
98 countarray=calloc(bins,sizeof(long)); in main()
100 for(i=0;i<bins;i++)sort[i]=c->quantlist+i; in main()
101 qsort(sort,bins,sizeof(long *),ascend); in main()
112 int index= (j/indexdiv)%bins; in main()
[all …]
Dlatticetune.c139 long bins=_book_maptype1_quantvals(c); in main() local
149 int index= (j/indexdiv)%bins; in main()
152 indexdiv*=bins; in main()
/external/chromium_org/third_party/smhasher/src/
DStats.h12 double calcScore ( const int * bins, const int bincount, const int ballcount );
16 inline double ExpectedCollisions ( double balls, double bins ) in ExpectedCollisions() argument
18 return balls - bins + bins * pow(1 - 1/bins,balls); in ExpectedCollisions()
124 std::vector<int> bins; in TestDistribution() local
125 bins.resize(1 << maxwidth); in TestDistribution()
136 memset(&bins[0],0,sizeof(int)*bincount); in TestDistribution()
144 bins[index]++; in TestDistribution()
154 double n = calcScore(&bins[0],bincount,(int)hashes.size()); in TestDistribution()
172 bins[i] += bins[i+bincount]; in TestDistribution()
307 std::vector<int> bins(nbins,0); in TestDistributionBytepairs()
[all …]
DAvalancheTest.h83 std::vector<int> bins(keybits*hashbits,0); in AvalancheTest()
85 calcBias<keytype,hashtype>(hash,bins,reps,r); in AvalancheTest()
91 double b = maxBias(bins,reps); in AvalancheTest()
119 std::vector<int> bins(hashbits*hashbits*4,0); in BicTest()
146 bins[(out1 * hashbits + out2) * 4 + b]++; in BicTest()
168 double b2 = double(bins[(out1 * hashbits + out2) * 4 + b]) / double(reps / 2); in BicTest()
257 std::vector<int> bins(keybits*pagesize,0);
263 int * page = &bins[keybit*pagesize];
296 int * page = &bins[keybit*pagesize];
297 int * bins = &page[(out1*hashbits+out2)*4]; variable
[all …]
DAvalancheTest.cpp5 void PrintAvalancheDiagram ( int x, int y, int reps, double scale, int * bins ) in PrintAvalancheDiagram() argument
16 int bin = bins[k + (j*y)]; in PrintAvalancheDiagram()
DStats.cpp45 double calcScore ( const int * bins, const int bincount, const int keycount ) in calcScore() argument
56 double b = bins[i]; in calcScore()
/external/skia/tests/
DRandomTest.cpp35 static bool chi_square_test(int bins[256], int e) { in chi_square_test()
43 double delta = bins[j] - e; in chi_square_test()
61 int bins[256]; in test_random_byte() local
62 memset(bins, 0, sizeof(int)*256); in test_random_byte()
66 bins[(rand.nextU() >> shift) & 0xff]++; in test_random_byte()
69 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_byte()
73 int bins[256]; in test_random_float() local
74 memset(bins, 0, sizeof(int)*256); in test_random_float()
80 bins[(int)(f*256.f)]++; in test_random_float()
82 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_float()
[all …]
/external/opencv/cv/src/
Dcvhistogram.cpp62 hist->bins = 0; in cvCreateHist()
65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvCreateHist()
67 CV_CALL( cvCreateData( hist->bins )); in cvCreateHist()
71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); in cvCreateHist()
109 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvMakeHistHeaderForArray()
127 hist->bins = 0; in cvMakeHistHeaderForArray()
154 cvRelease( &temp->bins ); in cvReleaseHist()
157 cvReleaseData( temp->bins ); in cvReleaseHist()
158 temp->bins = 0; in cvReleaseHist()
180 cvZero( hist->bins ); in cvClearHist()
[all …]
Dcvpgh.cpp349 dims = cvGetDims( hist->bins, size ); in cvCalcPGH()
357 IPPI_CALL( icvCalcPGH( contour, ((CvMatND*)(hist->bins))->data.fl, size[0], size[1] )); in cvCalcPGH()
Dcvthresh.cpp219 h = (float*)cvPtr1D( hist->bins, 0 ); in icvGetThreshVal_Otsu()
/external/webrtc/src/system_wrappers/source/spreadsortlib/
Dspreadsort.hpp141 RandomAccessIter * bins = size_bins(bin_sizes, bin_cache, cache_offset, cache_end, bin_count); in spread_sort_rec() local
147 bins[0] = first; in spread_sort_rec()
149 bins[u + 1] = bins[u] + bin_sizes[u]; in spread_sort_rec()
155 RandomAccessIter * local_bin = bins + u; in spread_sort_rec()
160 for(target_bin = (bins + ((*current >> log_divisor) - div_min)); target_bin != local_bin; in spread_sort_rec()
161 target_bin = bins + ((*current >> log_divisor) - div_min)) { in spread_sort_rec()
166 RandomAccessIter * b_bin = bins + ((*b >> log_divisor) - div_min); in spread_sort_rec()
180 bins[bin_count - 1] = last; in spread_sort_rec()
204 …inline void inner_swap_loop(RandomAccessIter * bins, const RandomAccessIter & nextbinstart, unsign… in inner_swap_loop() argument
207 RandomAccessIter * local_bin = bins + ii; in inner_swap_loop()
[all …]
/external/webp/src/utils/
Dfilters.c167 int bins[WEBP_FILTER_LAST][SMAX]; in EstimateBestFilter() local
168 memset(bins, 0, sizeof(bins)); in EstimateBestFilter()
181 bins[WEBP_FILTER_NONE][diff0] = 1; in EstimateBestFilter()
182 bins[WEBP_FILTER_HORIZONTAL][diff1] = 1; in EstimateBestFilter()
183 bins[WEBP_FILTER_VERTICAL][diff2] = 1; in EstimateBestFilter()
184 bins[WEBP_FILTER_GRADIENT][diff3] = 1; in EstimateBestFilter()
194 if (bins[filter][i] > 0) { in EstimateBestFilter()
/external/chromium_org/third_party/libwebp/utils/
Dfilters.c167 int bins[WEBP_FILTER_LAST][SMAX]; in EstimateBestFilter() local
168 memset(bins, 0, sizeof(bins)); in EstimateBestFilter()
181 bins[WEBP_FILTER_NONE][diff0] = 1; in EstimateBestFilter()
182 bins[WEBP_FILTER_HORIZONTAL][diff1] = 1; in EstimateBestFilter()
183 bins[WEBP_FILTER_VERTICAL][diff2] = 1; in EstimateBestFilter()
184 bins[WEBP_FILTER_GRADIENT][diff3] = 1; in EstimateBestFilter()
194 if (bins[filter][i] > 0) { in EstimateBestFilter()
/external/bison/lib/
Dbitset_stats.c108 unsigned int n_bins, unsigned int *bins) in bitset_percent_histogram_print() argument
115 total += bins[i]; in bitset_percent_histogram_print()
124 (i + 1) * 100.0 / n_bins, bins[i], in bitset_percent_histogram_print()
125 (100.0 * bins[i]) / total); in bitset_percent_histogram_print()
132 unsigned int n_bins, unsigned int *bins) in bitset_log_histogram_print() argument
140 total += bins[i]; in bitset_log_histogram_print()
146 for (i = n_bins; i > 3 && ! bins[i - 1]; i--) in bitset_log_histogram_print()
156 max_width, i, bins[i], 100.0 * bins[i] / total); in bitset_log_histogram_print()
163 bins[i], in bitset_log_histogram_print()
164 (100.0 * bins[i]) / total); in bitset_log_histogram_print()
/external/opencv/cvaux/src/
Dcamshift.cpp171 dims = cvGetDims( m_hist->bins ); in update_histogram()
187 cvScale( m_hist->bins, m_hist->bins, max_val ? 255. / max_val : 0. ); in update_histogram()
255 int c_dims2 = cvGetDims( m_hist->bins, dims2 ); in set_hist_dims()
/external/opencv/cvaux/include/
Dcvaux.hpp75 { return m_hist ? cvGetDims( m_hist->bins, dims ) : 0; } in get_hist_dims()
115 { return m_hist ? (float)cvGetRealND(m_hist->bins, bin) : 0.f; } in query()
/external/libvpx/libvpx/build/make/
DMakefile337 .bins: $(BINS)
344 .install-bins: .bins $(addprefix $(DIST_DIR)/,$(INSTALL-BINS))
348 rm -f .bins .install-bins $(BINS)
419 BUILD_TARGETS += .docs .libs .bins
420 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins
/external/opencv/cv/include/
Dcvcompat.h480 ((float)cvGetReal1D( (hist)->bins, (idx0)))
482 ((float)cvGetReal2D( (hist)->bins, (idx0), (idx1)))
484 ((float)cvGetReal3D( (hist)->bins, (idx0), (idx1), (idx2)))
486 ((float)cvGetRealND( (hist)->bins, (idx)))
491 ((float*)cvPtr1D( (hist)->bins, (idx0), 0))
493 ((float*)cvPtr2D( (hist)->bins, (idx0), (idx1), 0))
495 ((float*)cvPtr3D( (hist)->bins, (idx0), (idx1), (idx2), 0))
497 ((float*)cvPtrND( (hist)->bins, (idx), 0))
/external/chromium_org/third_party/jemalloc/chromium/
Djemalloc.c1029 arena_bin_t bins[1]; /* Dynamically sized. */ member
2061 if (arena->bins[i].stats.nrequests == 0) { in stats_print()
2086 arena->bins[i].reg_size, in stats_print()
2087 arena->bins[i].nregs, in stats_print()
2088 arena->bins[i].run_size >> pagesize_2pow, in stats_print()
2089 arena->bins[i].stats.nrequests, in stats_print()
2090 arena->bins[i].stats.nruns, in stats_print()
2091 arena->bins[i].stats.reruns, in stats_print()
2092 arena->bins[i].stats.highruns, in stats_print()
2093 arena->bins[i].stats.curruns); in stats_print()
[all …]
/external/chromium_org/third_party/jemalloc/vendor/
Djemalloc.c1022 arena_bin_t bins[1]; /* Dynamically sized. */ member
2050 if (arena->bins[i].stats.nrequests == 0) { in stats_print()
2075 arena->bins[i].reg_size, in stats_print()
2076 arena->bins[i].nregs, in stats_print()
2077 arena->bins[i].run_size >> pagesize_2pow, in stats_print()
2078 arena->bins[i].stats.nrequests, in stats_print()
2079 arena->bins[i].stats.nruns, in stats_print()
2080 arena->bins[i].stats.reruns, in stats_print()
2081 arena->bins[i].stats.highruns, in stats_print()
2082 arena->bins[i].stats.curruns); in stats_print()
[all …]
/external/eigen/unsupported/Eigen/
DFFT62 * number of bins in complex vs real.
213 dst.resize( (src.size()>>1)+1); // half the bins + Nyquist bin
331 …e_input<0) { //shrinking -- create the Nyquist bin as the average of the two bins that fold into it
/external/opencv/cxcore/include/
Dcxtypes.h812 CvArr* bins; member
822 (hist)->bins != NULL)
828 CV_IS_SPARSE_MAT((hist)->bins)
/external/openfst/
DNEWS41 support throughout scripts/bins/dsos (1.2.8)
/external/chromium_org/third_party/opus/src/celt/
Dcelt_encoder.c1196 int bins; in compute_vbr() local
1197 bins = eBands[nbEBands-2]<<LM; in compute_vbr()
1199 floor_depth = (opus_int32)SHR32(MULT16_16((C*bins<<BITRES),maxDepth), DB_SHIFT); in compute_vbr()