/external/rust/crates/rand/src/distributions/ |
D | weighted_index.rs | 124 let distr = X::Sampler::new(zero, total_weight.clone()); in new() localVariable 129 weight_distribution: distr, in new() 308 let distr = WeightedIndex::new(weights.to_vec()).unwrap(); in test_weightedindex() localVariable 310 chosen[distr.sample(&mut r)] += 1; in test_weightedindex() 316 let distr = WeightedIndex::new(&weights[..]).unwrap(); in test_weightedindex() localVariable 318 chosen[distr.sample(&mut r)] += 1; in test_weightedindex() 324 let distr = WeightedIndex::new(weights.iter()).unwrap(); in test_weightedindex() localVariable 326 chosen[distr.sample(&mut r)] += 1; in test_weightedindex() 380 let mut distr = WeightedIndex::new(weights.to_vec()).unwrap(); in test_update_weights() localVariable 381 assert_eq!(distr.total_weight, total_weight); in test_update_weights() [all …]
|
D | distribution.rs | 79 distr: self, in sample_iter() 108 distr: self, in map() 130 distr: D, field 147 Some(self.distr.sample(&mut self.rng)) in next() 177 distr: D, field 188 (self.func)(self.distr.sample(rng)) in sample() 219 let distr = Open01; in test_distributions_iter() localVariable 220 let mut iter = Distribution::<f32>::sample_iter(distr, &mut rng); in test_distributions_iter()
|
D | bernoulli.rs | 205 let distr = Bernoulli::new(0.4532).unwrap(); in value_stability() localVariable 208 *x = rng.sample(&distr); in value_stability()
|
D | float.rs | 262 distr: &D, zero: T, expected: &[T], in value_stability() 267 *x = rng.sample(&distr); in value_stability()
|
D | other.rs | 305 distr: &D, zero: T, expected: &[T], in value_stability() 310 *x = rng.sample(&distr); in value_stability()
|
D | uniform.rs | 1158 let distr = UniformDuration::new(Duration::from_secs(10), Duration::from_secs(60)); in test_serialization_uniform_duration() localVariable 1159 …let de_distr: UniformDuration = bincode::deserialize(&bincode::serialize(&distr).unwrap()).unwrap(… in test_serialization_uniform_duration() 1161 distr.offset, de_distr.offset in test_serialization_uniform_duration() 1163 match (distr.mode, de_distr.mode) { in test_serialization_uniform_duration() 1610 let distr = Uniform::new(lb, ub); in value_stability() localVariable 1612 *x = rng.sample(&distr); in value_stability()
|
/external/rappor/tests/ |
D | gen_counts.R | 124 ComputePdf <- function(distr, range) { argument 128 if (distr == 'exp') { 130 } else if (distr == 'gauss') { 134 } else if (distr == 'unif') { 137 } else if (distr == 'zipf1') { 141 } else if (distr == 'zipf1.5') { 145 stop(sprintf("Invalid distribution '%s'", distr)) 172 distr <- argv[[1]] functionVar 185 pdf <- ComputePdf(distr, num_unique_values)
|
D | gen_true_values.R | 32 GenerateTrueValues <- function(distr, distr_range, num_clients, argument 36 pdf <- ComputePdf(distr, distr_range) 67 distr <- argv[[1]] functionVar 74 reports <- GenerateTrueValues(distr, distr_range, num_clients,
|
/external/cronet/third_party/abseil-cpp/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/webrtc/third_party/abseil-cpp/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/openscreen/third_party/abseil/src/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/angle/third_party/abseil-cpp/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/libtextclassifier/abseil-cpp/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/abseil-cpp/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/tensorflow/third_party/absl/abseil-cpp/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/internal/ |
D | seed_material.h | 70 random_internal::FastUniformBits<uint32_t> distr; in ReadSeedMaterialFromURBG() local 78 seed_value = distr(*urbg); in ReadSeedMaterialFromURBG()
|
/external/rust/crates/rand/src/ |
D | rng.rs | 152 fn sample<T, D: Distribution<T>>(&mut self, distr: D) -> T { in sample() 153 distr.sample(self) in sample() 192 fn sample_iter<T, D>(self, distr: D) -> distributions::DistIter<D, Self, T> in sample_iter() 197 distr.sample_iter(self) in sample_iter()
|
/external/tensorflow/tensorflow/compiler/xla/tools/ |
D | driver.cc | 356 std::uniform_int_distribution<> distr(kLowerBound, kUpperBound); in FillIntT() local 358 casted[i] = static_cast<T>(distr(generator)); in FillIntT() 367 std::uniform_real_distribution<T> distr(kLowerBoundFP, kUpperBoundFP); in FillFloatT() local 369 casted[i] = distr(generator); in FillFloatT()
|
/external/rappor/ |
D | regtest.sh | 164 case_name distr num_unique_values num_clients values_per_client \ 181 tests/gen_true_values.R $distr $num_unique_values $num_clients \
|
/external/armnn/python/pyarmnn/ |
D | README.md | 38 ## Build python distr 42 Source distr contains setup.py script that is executed on the users machine during package installa… 43 When preparing binary distr (wheel), setup.py is executed on the build machine and the resulting pa… 46 In our case, PyArmNN depends on Arm NN installation. Thus, binary distr will be linked with
|
/external/rust/crates/rand/src/seq/ |
D | index.rs | 531 let distr = Uniform::new(X::zero(), length); in sample_rejection() localVariable 534 let mut pos = distr.sample(rng); in sample_rejection() 536 pos = distr.sample(rng); in sample_rejection()
|
D | mod.rs | 540 let distr = WeightedIndex::new(self.iter().map(weight))?; in choose_weighted() localVariable 541 Ok(&self[distr.sample(rng)]) in choose_weighted() 559 let distr = WeightedIndex::new(self.iter().map(weight))?; in choose_weighted_mut() localVariable 560 Ok(&mut self[distr.sample(rng)]) in choose_weighted_mut()
|