Home
last modified time | relevance | path

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

12345

/external/eigen/test/
Drand.cpp40 template<typename Scalar> void check_histogram(Scalar x, Scalar y, int bins) in check_histogram() argument
42 Array<int,1,Dynamic> hist(bins); in check_histogram()
45 int n = bins*f; in check_histogram()
47 int divisor = int((range+1)/bins); in check_histogram()
48 assert(((range+1)%bins)==0); in check_histogram()
113 int bins = 100; in test_rand() local
114 CALL_SUBTEST(check_histogram<int>(-3333,-3333+bins*(3333/bins)-1,bins)); in test_rand()
115 bins = 1000; in test_rand()
116 CALL_SUBTEST(check_histogram<int>(-RAND_MAX+10,-RAND_MAX+10+bins*(RAND_MAX/bins)-1,bins)); in test_rand()
117 …BTEST(check_histogram<int>(-RAND_MAX+10,-int64(RAND_MAX)+10+bins*(2*int64(RAND_MAX)/bins)-1,bins)); in test_rand()
/external/skia/tests/
DRandomTest.cpp34 static bool chi_square_test(int bins[256], int e) { in chi_square_test()
42 double delta = bins[j] - e; in chi_square_test()
60 int bins[256]; in test_random_byte() local
61 memset(bins, 0, sizeof(int)*256); in test_random_byte()
65 bins[(rand.nextU() >> shift) & 0xff]++; in test_random_byte()
68 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_byte()
72 int bins[256]; in test_random_float() local
73 memset(bins, 0, sizeof(int)*256); in test_random_float()
79 bins[(int)(f*256.f)]++; in test_random_float()
81 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_float()
[all …]
/external/skqp/tests/
DRandomTest.cpp34 static bool chi_square_test(int bins[256], int e) { in chi_square_test()
42 double delta = bins[j] - e; in chi_square_test()
60 int bins[256]; in test_random_byte() local
61 memset(bins, 0, sizeof(int)*256); in test_random_byte()
65 bins[(rand.nextU() >> shift) & 0xff]++; in test_random_byte()
68 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_byte()
72 int bins[256]; in test_random_float() local
73 memset(bins, 0, sizeof(int)*256); in test_random_float()
79 bins[(int)(f*256.f)]++; in test_random_float()
81 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); in test_random_float()
[all …]
/external/webrtc/webrtc/system_wrappers/source/spreadsortlib/
Dspreadsort.hpp146 RandomAccessIter * bins = size_bins(bin_sizes, bin_cache, cache_offset, cache_end, bin_count); in spread_sort_rec() local
152 bins[0] = first; in spread_sort_rec()
154 bins[u + 1] = bins[u] + bin_sizes[u]; in spread_sort_rec()
160 RandomAccessIter * local_bin = bins + u; in spread_sort_rec()
165 for(target_bin = (bins + ((*current >> log_divisor) - div_min)); target_bin != local_bin; in spread_sort_rec()
166 target_bin = bins + ((*current >> log_divisor) - div_min)) { in spread_sort_rec()
171 RandomAccessIter * b_bin = bins + ((*b >> log_divisor) - div_min); in spread_sort_rec()
185 bins[bin_count - 1] = last; in spread_sort_rec()
209 …inline void inner_swap_loop(RandomAccessIter * bins, const RandomAccessIter & nextbinstart, unsign… in inner_swap_loop() argument
212 RandomAccessIter * local_bin = bins + ii; in inner_swap_loop()
[all …]
/external/webp/src/utils/
Dfilters_utils.c32 int bins[WEBP_FILTER_LAST][SMAX]; in WebPEstimateBestFilter() local
33 memset(bins, 0, sizeof(bins)); in WebPEstimateBestFilter()
46 bins[WEBP_FILTER_NONE][diff0] = 1; in WebPEstimateBestFilter()
47 bins[WEBP_FILTER_HORIZONTAL][diff1] = 1; in WebPEstimateBestFilter()
48 bins[WEBP_FILTER_VERTICAL][diff2] = 1; in WebPEstimateBestFilter()
49 bins[WEBP_FILTER_GRADIENT][diff3] = 1; in WebPEstimateBestFilter()
60 if (bins[filter][i] > 0) { in WebPEstimateBestFilter()
/external/tensorflow/tensorflow/python/ops/
Dhistogram_ops_test.py40 bins = histogram_ops.histogram_fixed_width_bins(
42 self.assertEqual(dtypes.int32, bins.dtype)
43 self.assertAllClose(expected_bins, self.evaluate(bins))
52 bins = histogram_ops.histogram_fixed_width_bins(
54 self.assertEqual(dtypes.int32, bins.dtype)
55 self.assertAllClose(expected_bins, self.evaluate(bins))
64 bins = histogram_ops.histogram_fixed_width_bins(
66 self.assertEqual(dtypes.int32, bins.dtype)
67 self.assertAllClose(expected_bins, self.evaluate(bins))
77 bins = histogram_ops.histogram_fixed_width_bins(
[all …]
/external/bcc/examples/lua/
Dkprobe-latency.lua25 local bins = 100
27 local lat_map = bpf.map('array', bins)
42 if index >= bins then
43 index = bins-1
61 for i=29,bins-1 do
70 for i=29,bins-1 do
/external/libdrm/nouveau/
Dbufctx.c52 struct nouveau_bufbin_priv bins[]; member
62 nouveau_bufctx_new(struct nouveau_client *client, int bins, in nouveau_bufctx_new() argument
67 priv = calloc(1, sizeof(*priv) + sizeof(priv->bins[0]) * bins); in nouveau_bufctx_new()
73 priv->nr_bins = bins; in nouveau_bufctx_new()
102 struct nouveau_bufbin_priv *pbin = &pctx->bins[bin]; in nouveau_bufctx_reset()
121 struct nouveau_bufbin_priv *pbin = &pctx->bins[bin]; in nouveau_bufctx_refn()
149 struct nouveau_bufbin_priv *pbin = &pctx->bins[bin]; in nouveau_bufctx_mthd()
/external/tensorflow/tensorflow/contrib/image/python/kernel_tests/
Dsegmentation_test.py93 bins = np.bincount(components.ravel())
95 self.assertGreater(bins[0], 0)
96 self.assertGreater(bins[1], 0)
97 self.assertGreater(bins[2], 0)
/external/grpc-grpc/tools/run_tests/artifacts/
Dbuild_artifact_protoc.sh26 cp bins/opt/protobuf/protoc bins/opt/*_plugin "${ARTIFACTS_OUT}"/
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/ScalarEvolution/
Dtrip-count.ll42 %bins = alloca [16 x i64], align 16
43 %0 = bitcast [16 x i64]* %bins to i8*
55 %arrayidx = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 %v11
68 %arrayidx8 = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 2
76 %arrayidx.1 = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 %next12
/external/llvm/test/Analysis/ScalarEvolution/
Dtrip-count.ll42 %bins = alloca [16 x i64], align 16
43 %0 = bitcast [16 x i64]* %bins to i8*
55 %arrayidx = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 %v11
68 %arrayidx8 = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 2
76 %arrayidx.1 = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 %next12
/external/jemalloc/src/
Dandroid_je_mallinfo.c34 arena_bin_t* bin = &arenas[i]->bins[j]; in je_mallinfo()
70 arena_bin_t* bin = &arenas[aidx]->bins[j]; in __mallinfo_arena_info()
89 arena_bin_t* bin = &arenas[aidx]->bins[bidx]; in __mallinfo_bin_info()
Dstats.c318 bool json, unsigned i, bool bins, bool large, bool huge) in stats_arena_print() argument
546 if (bins) { in stats_arena_print()
947 bool json, bool merged, bool unmerged, bool bins, bool large, bool huge) in stats_print_helper() argument
1023 narenas, bins, large, huge); in stats_print_helper()
1045 json, i, bins, large, huge); in stats_print_helper()
1074 bool bins = true; in stats_print() local
1118 bins = false; in stats_print()
1144 bins, large, huge); in stats_print()
/external/libvpx/libvpx/build/make/
DMakefile374 .bins: $(BINS)
381 .install-bins: .bins $(addprefix $(DIST_DIR)/,$(INSTALL-BINS))
385 rm -f .bins .install-bins $(BINS)
453 BUILD_TARGETS += .docs .libs .bins
454 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins
/external/grpc-grpc/src/ruby/pb/
Dgenerate_proto_ruby.sh20 PROTOC=bins/opt/protobuf/protoc
21 PLUGIN=protoc-gen-grpc=bins/opt/grpc_ruby_plugin
/external/tensorflow/tensorflow/compiler/tests/
Dstateless_random_ops_test.py78 def _chi_squared(self, x, bins): argument
82 histogram, _ = np.histogram(x, bins=bins, range=(0, 1))
83 expected = n / float(bins)
Dstateful_random_ops_test.py184 def _chi_squared(self, x, bins): argument
188 histogram, _ = np.histogram(x, bins=bins, range=(0, 1))
189 expected = n / float(bins)
/external/grpc-grpc/src/php/bin/
Dgenerate_proto_php.sh22 --plugin=protoc-gen-grpc=bins/opt/grpc_php_plugin \
38 --plugin=protoc-gen-grpc=bins/opt/grpc_php_plugin \
/external/grpc-grpc/src/csharp/
Dgenerate_proto_csharp.sh20 PROTOC=bins/opt/protobuf/protoc
21 PLUGIN=protoc-gen-grpc=bins/opt/grpc_csharp_plugin
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DHistogramChart.java250 int[][] bins = new int[rawData.size()][getNumBins()]; in recalculateDataSet() local
254 ++bins[setNum][(int) (Math.floor((d - minBin) / binWidth))]; in recalculateDataSet()
261 for (int i = 0; i < bins[setNum].length; i++) { in recalculateDataSet()
262 dataSet.addEntry(new BarEntry(i, bins[setNum][i])); in recalculateDataSet()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_HistogramFixedWidth.pbtxt20 Scalar `int32 Tensor`. Number of histogram bins.
32 the number of entries in `values` that fall into every bin. The bins are
/external/u-boot/doc/device-tree-bindings/net/
Dstmmac.txt28 - snps,multicast-filter-bins: Number of multicast filter hash bins
59 snps,multicast-filter-bins = <256>;
/external/jemalloc/include/jemalloc/internal/
Dsize_classes.sh243 * NTBINS: Number of tiny bins.
244 * NLBINS: Number of bins supported by the lookup table.
245 * NBINS: Number of small size class bins.
/external/jemalloc_new/src/
Dandroid_je_mallinfo.c37 bin_t* bin = &arena->bins[j]; in accumulate_small_allocs()
104 bin_t* bin = &arena->bins[bidx]; in je_mallinfo_bin_info()

12345