/external/eigen/test/ |
D | rand.cpp | 40 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/rust/crates/which/tests/ |
D | basic.rs | 17 pub bins: Vec<PathBuf>, field 60 let mut bins = vec![]; in new() localVariable 64 bins.push(mk_bin(&p, &BIN_NAME, "").unwrap()); in new() 65 bins.push(mk_bin(&p, &BIN_NAME, "exe").unwrap()); in new() 66 bins.push(mk_bin(&p, &BIN_NAME, "cmd").unwrap()); in new() 72 bins: bins, in new() 118 assert_eq!(_which(&f, &BIN_NAME).unwrap(), f.bins[0]) in test_which() 125 assert_eq!(_which(&f, &BIN_NAME).unwrap(), f.bins[1]) in test_which() 133 assert_eq!(_which(&f, &b).unwrap(), f.bins[0]) in test_which_extension() 141 assert_eq!(_which(&f, &b).unwrap(), f.bins[2]) in test_which_extension() [all …]
|
/external/skqp/tests/ |
D | RandomTest.cpp | 34 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/skia/tests/ |
D | RandomTest.cpp | 34 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/tensorflow/tensorflow/python/keras/layers/preprocessing/ |
D | discretization.py | 186 bins, argument 191 epsilon, bins if isinstance(bins, int) else 1), 195 if bins is not None and not isinstance(bins, int): 196 self.bins = np.append(bins, [np.Inf]) 198 self.bins = np.zeros(bins) 200 self.input_bins = bins 204 self.bins = self._add_state_variable( 206 shape=(self.bins.size,), 208 initializer=init_ops.constant_initializer(self.bins)) 232 def _bucketize_op(bins): argument [all …]
|
D | discretization_test.py | 58 layer = discretization.Discretization(bins=[0., 1., 2.]) 73 layer = discretization.Discretization(bins=[-.5, 0.5, 1.5]) 87 layer = discretization.Discretization(bins=[-.5, 0.5, 1.5]) 103 layer = discretization.Discretization(bins=[0., 1., 2.]) 119 layer = discretization.Discretization(bins=[-.5, 0.5, 1.5]) 132 layer = discretization.Discretization(bins=[-.5, 0.5, 1.5]) 206 layer = cls(epsilon=epsilon, bins=num_bins)
|
/external/webp/src/utils/ |
D | filters_utils.c | 32 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/ |
D | histogram_ops_test.py | 40 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/ |
D | kprobe-latency.lua | 25 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/ |
D | bufctx.c | 52 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/libcap/cap/ |
D | text.go | 51 func (c *Set) histo(bins []int, patterns []uint, from, limit Value) uint { 61 bins[x]++ 70 if bins[t] >= bins[m] { 90 bins := make([]int, 8) 98 m := c.histo(bins, patterns, 0, Value(maxValues)) 104 if i == m || bins[i] == 0 {
|
/external/OpenCL-CTS/test_conformance/atomics/ |
D | test_indexed_cases.cpp | 181 cl_mem bins = clCreateBuffer( in add_index_bin_test() local 192 if (bins == NULL) { in add_index_bin_test() 223 …err = clEnqueueWriteBuffer(queue, bins, true, 0, sizeof(cl_int)*number_of_bins*max_counts_per_bin,… in add_index_bin_test() 255 err |= clSetKernelArg(kernel, 1, sizeof(bins), &bins); in add_index_bin_test() 275 …err = clEnqueueReadBuffer( queue, bins, true, 0, sizeof(cl_int)*number_of_bins*max_counts_per_bin,… in add_index_bin_test() 342 clReleaseMemObject(bins); in add_index_bin_test()
|
/external/llvm-project/llvm/unittests/TableGen/ |
D | Automata.td | 82 // This test generates an automaton that can pack values into bins subject to 83 // constraints. There are 6 possible bins, and the input tokens are constraint 84 // types. Some input types span two bins. 97 // Can use bins {0-3} 99 // Can use bins {0-3} but only evens (0 and 2). 101 // Can use bins {0-3} but only odds (1 and 3). 103 // Can use bins {0-3} but only even-odd pairs (0+1 or 1+2). 136 // Mixin that occupies a pair of bins (even-odd pairs).
|
/external/grpc-grpc/tools/run_tests/artifacts/ |
D | build_artifact_protoc.sh | 26 cp bins/opt/protobuf/protoc bins/opt/*_plugin "${ARTIFACTS_OUT}"/
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | util.py | 79 def chi_squared(x, bins): argument 83 histogram, _ = np.histogram(x, bins=bins, range=(0, 1)) 84 expected = n / float(bins)
|
/external/llvm-project/openmp/runtime/src/ |
D | kmp_stats.h | 329 } bins[numBins]; variable 339 t += bins[i].count; in check() 351 bins[i] = o.bins[i]; in logHistogram() 360 bins[i].count = 0; in reset() 361 bins[i].total = 0; in reset() 368 uint32_t count(int b) const { return bins[b + logOffset].count; } in count() 369 double total(int b) const { return bins[b + logOffset].total; } in total() 375 bins[i].count += o.bins[i].count; 376 bins[i].total += o.bins[i].total;
|
/external/deqp-deps/amber/src/ |
D | buffer_test.cc | 146 std::vector<uint64_t> bins = b.GetHistogramForChannel(2, 256); in TEST_F() local 148 EXPECT_EQ(1u, bins[i / 4 * 25]); in TEST_F() 167 std::vector<uint64_t> bins = b.GetHistogramForChannel(i, 256); in TEST_F() local 169 EXPECT_EQ(10u, bins[0]); in TEST_F() 190 std::vector<uint64_t> bins = b.GetHistogramForChannel(i, 256); in TEST_F() local 192 EXPECT_EQ(10u, bins[255]); in TEST_F()
|
/external/llvm/test/Analysis/ScalarEvolution/ |
D | trip-count.ll | 42 %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-project/llvm/test/Analysis/ScalarEvolution/ |
D | trip-count.ll | 50 %bins = alloca [16 x i64], align 16 51 %0 = bitcast [16 x i64]* %bins to i8* 63 %arrayidx = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 %v11 76 %arrayidx8 = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 2 84 %arrayidx.1 = getelementptr [16 x i64], [16 x i64]* %bins, i64 0, i64 %next12
|
/external/grpc-grpc/src/ruby/pb/ |
D | generate_proto_ruby.sh | 20 PROTOC=bins/opt/protobuf/protoc 21 PLUGIN=protoc-gen-grpc=bins/opt/grpc_ruby_plugin
|
/external/mesa3d/src/freedreno/.gitlab-ci/reference/ |
D | shadow.log | 21 bin size: 768x320 (35 bins) 41 bin size: 640x192 (18 bins)
|
/external/grpc-grpc/src/csharp/ |
D | generate_proto_csharp.sh | 20 PROTOC=bins/opt/protobuf/protoc 21 PLUGIN=protoc-gen-grpc=bins/opt/grpc_csharp_plugin
|
/external/grpc-grpc/src/php/bin/ |
D | generate_proto_php.sh | 22 --plugin=protoc-gen-grpc=bins/opt/grpc_php_plugin \ 38 --plugin=protoc-gen-grpc=bins/opt/grpc_php_plugin \
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_HistogramFixedWidth.pbtxt | 20 Scalar `int32 Tensor`. Number of histogram bins. 32 the number of entries in `values` that fall into every bin. The bins are
|
/external/libvpx/libvpx/build/make/ |
D | Makefile | 374 .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
|