/third_party/boost/libs/math/test/compile_test/ |
D | test_compile_result.hpp | 93 const Distribution& dist = DistributionConcept<Distribution>::get_object(); in constraints() local 97 check_result<value_type>(cdf(dist, x)); in constraints() 98 check_result<value_type>(cdf(complement(dist, x))); in constraints() 99 check_result<value_type>(pdf(dist, x)); in constraints() 100 check_result<value_type>(quantile(dist, x)); in constraints() 101 check_result<value_type>(quantile(complement(dist, x))); in constraints() 102 check_result<value_type>(mean(dist)); in constraints() 103 check_result<value_type>(mode(dist)); in constraints() 104 check_result<value_type>(standard_deviation(dist)); in constraints() 105 check_result<value_type>(variance(dist)); in constraints() [all …]
|
/third_party/boost/libs/math/test/ |
D | test_weibull.cpp | 262 weibull_distribution<RealType> dist(2, 3); in test_spots() local 269 mean(dist) in test_spots() 270 , dist.scale() * boost::math::tgamma(1 + 1 / dist.shape()), tolerance); in test_spots() 273 variance(dist) in test_spots() 274 …, dist.scale() * dist.scale() * boost::math::tgamma(1 + 2 / dist.shape()) - mean(dist) * mean(dist… in test_spots() 277 standard_deviation(dist) in test_spots() 278 , sqrt(variance(dist)), tolerance); in test_spots() 281 hazard(dist, x) in test_spots() 282 , pdf(dist, x) / cdf(complement(dist, x)), tolerance); in test_spots() 285 chf(dist, x) in test_spots() [all …]
|
D | test_skew_normal.cpp | 70 skew_normal_distribution<RealType> dist (mean, scale, shape); in check_skew_normal() local 76 cdf(complement(dist, x)), q, tol); // 1 - cdf in check_skew_normal() 78 quantile(dist, p), x, tol); // quantile(cdf) = x in check_skew_normal() 80 quantile(complement(dist, q)), x, tol); // quantile(complement(1 - cdf)) = x in check_skew_normal() 268 skew_normal_distribution<RealType> dist(8, 3); in test_spots() local 275 mean(dist) in test_spots() 279 variance(dist) in test_spots() 283 standard_deviation(dist) in test_spots() 287 hazard(dist, x) in test_spots() 288 , pdf(dist, x) / cdf(complement(dist, x)), tol5); in test_spots() [all …]
|
D | test_lognormal.cpp | 182 lognormal_distribution<RealType> dist(8, 3); in test_spots() local 189 mean(dist) in test_spots() 193 variance(dist) in test_spots() 197 standard_deviation(dist) in test_spots() 201 hazard(dist, x) in test_spots() 202 , pdf(dist, x) / cdf(complement(dist, x)), tolerance); in test_spots() 205 chf(dist, x) in test_spots() 206 , -log(cdf(complement(dist, x))), tolerance); in test_spots() 209 coefficient_of_variation(dist) in test_spots() 210 , standard_deviation(dist) / mean(dist), tolerance); in test_spots() [all …]
|
/third_party/boost/boost/math/distributions/ |
D | hypergeometric.hpp | 96 …onst std::pair<unsigned, unsigned> range(const hypergeometric_distribution<RealType, Policy>& dist) in range() argument 102 unsigned r = dist.defective(); in range() 103 unsigned n = dist.sample_count(); in range() 104 unsigned N = dist.total(); in range() 120 inline RealType pdf(const hypergeometric_distribution<RealType, Policy>& dist, const unsigned& x) in pdf() argument 124 if(!dist.check_params(function, &result)) in pdf() 126 if(!dist.check_x(x, function, &result)) in pdf() 130 x, dist.defective(), dist.sample_count(), dist.total(), Policy()); in pdf() 134 inline RealType pdf(const hypergeometric_distribution<RealType, Policy>& dist, const U& x) in pdf() argument 145 return pdf(dist, u); in pdf() [all …]
|
D | pareto.hpp | 171 …line const std::pair<RealType, RealType> support(const pareto_distribution<RealType, Policy>& dist) in support() argument 175 …return std::pair<RealType, RealType>(dist.scale(), max_value<RealType>() ); // scale to + infinity. in support() 179 inline RealType pdf(const pareto_distribution<RealType, Policy>& dist, const RealType& x) in pdf() argument 183 RealType scale = dist.scale(); in pdf() 184 RealType shape = dist.shape(); in pdf() 198 inline RealType cdf(const pareto_distribution<RealType, Policy>& dist, const RealType& x) in cdf() argument 202 RealType scale = dist.scale(); in cdf() 203 RealType shape = dist.shape(); in cdf() 221 inline RealType quantile(const pareto_distribution<RealType, Policy>& dist, const RealType& p) in quantile() argument 226 RealType scale = dist.scale(); in quantile() [all …]
|
D | non_central_f.hpp | 84 inline RealType mean(const non_central_f_distribution<RealType, Policy>& dist) in mean() argument 87 RealType v1 = dist.degrees_of_freedom1(); in mean() 88 RealType v2 = dist.degrees_of_freedom2(); in mean() 89 RealType l = dist.non_centrality(); in mean() 114 inline RealType mode(const non_central_f_distribution<RealType, Policy>& dist) in mode() argument 118 RealType n = dist.degrees_of_freedom1(); in mode() 119 RealType m = dist.degrees_of_freedom2(); in mode() 120 RealType l = dist.non_centrality(); in mode() 138 dist, in mode() 144 inline RealType variance(const non_central_f_distribution<RealType, Policy>& dist) in variance() argument [all …]
|
D | uniform.hpp | 152 …ine const std::pair<RealType, RealType> support(const uniform_distribution<RealType, Policy>& dist) in support() argument 156 return std::pair<RealType, RealType>(dist.lower(), dist.upper()); in support() 160 inline RealType pdf(const uniform_distribution<RealType, Policy>& dist, const RealType& x) in pdf() argument 162 RealType lower = dist.lower(); in pdf() 163 RealType upper = dist.upper(); in pdf() 185 inline RealType cdf(const uniform_distribution<RealType, Policy>& dist, const RealType& x) in cdf() argument 187 RealType lower = dist.lower(); in cdf() 188 RealType upper = dist.upper(); in cdf() 210 inline RealType quantile(const uniform_distribution<RealType, Policy>& dist, const RealType& p) in quantile() argument 212 RealType lower = dist.lower(); in quantile() [all …]
|
D | lognormal.hpp | 94 RealType pdf(const lognormal_distribution<RealType, Policy>& dist, const RealType& x) in pdf() argument 98 RealType mu = dist.location(); in pdf() 99 RealType sigma = dist.scale(); in pdf() 125 inline RealType cdf(const lognormal_distribution<RealType, Policy>& dist, const RealType& x) in cdf() argument 132 if(0 == detail::check_scale(function, dist.scale(), &result, Policy())) in cdf() 134 if(0 == detail::check_location(function, dist.location(), &result, Policy())) in cdf() 142 normal_distribution<RealType, Policy> norm(dist.location(), dist.scale()); in cdf() 147 inline RealType quantile(const lognormal_distribution<RealType, Policy>& dist, const RealType& p) in quantile() argument 154 if(0 == detail::check_scale(function, dist.scale(), &result, Policy())) in quantile() 156 if(0 == detail::check_location(function, dist.location(), &result, Policy())) in quantile() [all …]
|
D | skew_normal.hpp | 118 inline RealType pdf(const skew_normal_distribution<RealType, Policy>& dist, const RealType& x) in pdf() argument 120 const RealType scale = dist.scale(); in pdf() 121 const RealType location = dist.location(); in pdf() 122 const RealType shape = dist.shape(); in pdf() 163 inline RealType cdf(const skew_normal_distribution<RealType, Policy>& dist, const RealType& x) in cdf() argument 165 const RealType scale = dist.scale(); in cdf() 166 const RealType location = dist.location(); in cdf() 167 const RealType shape = dist.shape(); in cdf() 214 const RealType scale = c.dist.scale(); in cdf() 215 const RealType location = c.dist.location(); in cdf() [all …]
|
D | triangular.hpp | 195 … const std::pair<RealType, RealType> support(const triangular_distribution<RealType, Policy>& dist) in support() argument 198 return std::pair<RealType, RealType>(dist.lower(), dist.upper()); in support() 202 RealType pdf(const triangular_distribution<RealType, Policy>& dist, const RealType& x) in pdf() argument 205 RealType lower = dist.lower(); in pdf() 206 RealType mode = dist.mode(); in pdf() 207 RealType upper = dist.upper(); in pdf() 240 inline RealType cdf(const triangular_distribution<RealType, Policy>& dist, const RealType& x) in cdf() argument 243 RealType lower = dist.lower(); in cdf() 244 RealType mode = dist.mode(); in cdf() 245 RealType upper = dist.upper(); in cdf() [all …]
|
D | negative_binomial.hpp | 275 inline RealType mean(const negative_binomial_distribution<RealType, Policy>& dist) in mean() argument 277 return dist.successes() * (1 - dist.success_fraction() ) / dist.success_fraction(); in mean() 288 inline RealType mode(const negative_binomial_distribution<RealType, Policy>& dist) in mode() argument 291 return floor((dist.successes() -1) * (1 - dist.success_fraction()) / dist.success_fraction()); in mode() 295 inline RealType skewness(const negative_binomial_distribution<RealType, Policy>& dist) in skewness() argument 298 RealType p = dist.success_fraction(); in skewness() 299 RealType r = dist.successes(); in skewness() 306 inline RealType kurtosis(const negative_binomial_distribution<RealType, Policy>& dist) in kurtosis() argument 309 RealType p = dist.success_fraction(); in kurtosis() 310 RealType r = dist.successes(); in kurtosis() [all …]
|
D | bernoulli.hpp | 144 inline RealType mean(const bernoulli_distribution<RealType, Policy>& dist) in mean() argument 146 return dist.success_fraction(); in mean() 157 inline RealType variance(const bernoulli_distribution<RealType, Policy>& dist) in variance() argument 159 return dist.success_fraction() * (1 - dist.success_fraction()); in variance() 163 RealType pdf(const bernoulli_distribution<RealType, Policy>& dist, const RealType& k) in pdf() argument 170 dist.success_fraction(), // 0 to 1 in pdf() 179 return 1 - dist.success_fraction(); // 1 - p in pdf() 183 return dist.success_fraction(); // p in pdf() 188 inline RealType cdf(const bernoulli_distribution<RealType, Policy>& dist, const RealType& k) in cdf() argument 190 RealType p = dist.success_fraction(); in cdf() [all …]
|
D | binomial.hpp | 199 …RealType quantile_imp(const binomial_distribution<RealType, Policy>& dist, const RealType& p, cons… in quantile_imp() argument 207 RealType trials = dist.trials(); in quantile_imp() 208 RealType success_fraction = dist.success_fraction(); in quantile_imp() 266 dist, in quantile_imp() 418 const std::pair<RealType, RealType> range(const binomial_distribution<RealType, Policy>& dist) in range() argument 421 return std::pair<RealType, RealType>(static_cast<RealType>(0), dist.trials()); in range() 425 … const std::pair<RealType, RealType> support(const binomial_distribution<RealType, Policy>& dist) in support() argument 428 return std::pair<RealType, RealType>(static_cast<RealType>(0), dist.trials()); in support() 432 inline RealType mean(const binomial_distribution<RealType, Policy>& dist) in mean() argument 434 return dist.trials() * dist.success_fraction(); in mean() [all …]
|
D | arcsine.hpp | 200 …line const std::pair<RealType, RealType> range(const arcsine_distribution<RealType, Policy>& dist) in range() argument 203 …urn std::pair<RealType, RealType>(static_cast<RealType>(dist.x_min()), static_cast<RealType>(dist.… in range() 207 …ne const std::pair<RealType, RealType> support(const arcsine_distribution<RealType, Policy>& dist) in support() argument 210 …urn std::pair<RealType, RealType>(static_cast<RealType>(dist.x_min()), static_cast<RealType>(dist.… in support() 214 inline RealType mean(const arcsine_distribution<RealType, Policy>& dist) in mean() argument 217 RealType x_min = dist.x_min(); in mean() 218 RealType x_max = dist.x_max(); in mean() 233 inline RealType variance(const arcsine_distribution<RealType, Policy>& dist) in variance() argument 236 RealType x_min = dist.x_min(); in variance() 237 RealType x_max = dist.x_max(); in variance() [all …]
|
/third_party/typescript/tests/baselines/reference/user/ |
D | acorn.log | 3 node_modules/acorn/acorn-loose/dist/acorn-loose.js(3,10): error TS2304: Cannot find name 'define'. 4 node_modules/acorn/acorn-loose/dist/acorn-loose.js(3,35): error TS2304: Cannot find name 'define'. 5 node_modules/acorn/acorn-loose/dist/acorn-loose.js(3,48): error TS2304: Cannot find name 'define'. 6 …-loose/dist/acorn-loose.js(4,45): error TS2339: Property 'acorn' does not exist on type 'typeof im… 7 …-loose/dist/acorn-loose.js(4,80): error TS2339: Property 'acorn' does not exist on type 'typeof im… 8 …loose/dist/acorn-loose.js(4,106): error TS2339: Property 'acorn' does not exist on type 'typeof im… 9 node_modules/acorn/acorn-loose/dist/acorn-loose.js(12,34): error TS2339: Property 'BaseParser' does… 10 node_modules/acorn/acorn-loose/dist/acorn-loose.js(83,12): error TS2339: Property 'next' does not e… 11 node_modules/acorn/acorn-loose/dist/acorn-loose.js(110,16): error TS2339: Property 'lookAhead' does… 12 node_modules/acorn/acorn-loose/dist/acorn-loose.js(111,44): error TS2339: Property 'next' does not … [all …]
|
/third_party/boost/libs/algorithm/test/ |
D | find_backward_test.cpp | 68 const dist_t<std::vector<int> > dist(v1); in test_find_backward() local 73 dist(ba::find_backward(v1.begin(), v1.end(), 0)), v1.size()); in test_find_backward() 75 dist(ba::find_backward(v1.begin(), v1.end(), 100)), v1.size()); in test_find_backward() 77 dist(ba::find_backward(v1.begin(), v1.end(), v1.back())), in test_find_backward() 80 dist(ba::find_backward(v1.begin(), v1.end(), v1.front())), 0); in test_find_backward() 82 BOOST_CHECK_EQUAL(dist(ba::find_backward(v1, 0)), v1.size()); in test_find_backward() 83 BOOST_CHECK_EQUAL(dist(ba::find_backward(v1, 100)), v1.size()); in test_find_backward() 85 dist(ba::find_backward(v1, v1.back())), v1.size() - 1); in test_find_backward() 86 BOOST_CHECK_EQUAL(dist(ba::find_backward(v1, v1.front())), 0); in test_find_backward() 92 const dist_t<std::list<int> > dist(l1); in test_find_backward() local [all …]
|
D | find_not_test.cpp | 69 const dist_t<std::vector<int> > dist(v1); in test_sequence() local 73 BOOST_CHECK_EQUAL(dist(ba::find_not(v1.begin(), v1.end(), 0)), 0); in test_sequence() 75 dist(ba::find_not(v1.begin(), v1.end(), v1.back())), 0); in test_sequence() 77 dist(ba::find_not(v1.begin(), v1.end(), v1.front())), 1); in test_sequence() 79 BOOST_CHECK_EQUAL(dist(ba::find_not(v1, 0)), 0); in test_sequence() 80 BOOST_CHECK_EQUAL(dist(ba::find_not(v1, v1.back())), 0); in test_sequence() 81 BOOST_CHECK_EQUAL(dist(ba::find_not(v1, v1.front())), 1); in test_sequence() 84 BOOST_CHECK_EQUAL(dist(ba::find_not(v1.begin(), v1.end(), 0)), 0); in test_sequence() 86 dist(ba::find_not(v1.begin(), v1.end(), v1.back())), v1.size()); in test_sequence() 88 dist(ba::find_not(v1.begin(), v1.end(), v1.front())), v1.size()); in test_sequence() [all …]
|
/third_party/python/Lib/distutils/tests/ |
D | test_dist.py | 11 from distutils.dist import Distribution, fix_help_options 183 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx', 188 self.assertNotIn('options', dir(dist)) 194 dist = Distribution(attrs=attrs) 195 dist.finalize_options() 198 self.assertEqual(dist.metadata.platforms, ['one', 'two']) 199 self.assertEqual(dist.metadata.keywords, ['one', 'two']) 203 dist = Distribution(attrs=attrs) 204 dist.finalize_options() 205 self.assertEqual(dist.metadata.platforms, ['foo bar']) [all …]
|
/third_party/boost/boost/math/concepts/ |
D | distributions.hpp | 59 RealType pdf(const distribution_archetype<RealType>& dist, const RealType& x); 62 RealType cdf(const distribution_archetype<RealType>& dist, const RealType& x); 65 RealType quantile(const distribution_archetype<RealType>& dist, const RealType& p); 74 RealType mean(const distribution_archetype<RealType>& dist); 77 RealType standard_deviation(const distribution_archetype<RealType>& dist); 80 RealType variance(const distribution_archetype<RealType>& dist); 83 RealType hazard(const distribution_archetype<RealType>& dist); 86 RealType chf(const distribution_archetype<RealType>& dist); 90 RealType coefficient_of_variation(const distribution_archetype<RealType>& dist); 93 RealType mode(const distribution_archetype<RealType>& dist); [all …]
|
/third_party/abseil-cpp/absl/random/ |
D | bernoulli_distribution_test.cc | 73 absl::bernoulli_distribution dist(p); in TEST_P() local 75 if (dist(rng)) yes++; in TEST_P() 139 auto generate = [&urbg](absl::bernoulli_distribution& dist) { in TEST() argument 144 output.append(dist(urbg) ? "1" : "0"); in TEST() 151 absl::bernoulli_distribution dist(kP); in TEST() local 152 auto v = generate(dist); in TEST() 154 EXPECT_EQ(v, "00000000000010000000000010000000000") << dist; in TEST() 157 absl::bernoulli_distribution dist(kP * 10.0); in TEST() local 158 auto v = generate(dist); in TEST() 160 EXPECT_EQ(v, "00000100010010010010000011000011010") << dist; in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
D | bernoulli_distribution_test.cc | 73 absl::bernoulli_distribution dist(p); in TEST_P() local 75 if (dist(rng)) yes++; in TEST_P() 139 auto generate = [&urbg](absl::bernoulli_distribution& dist) { in TEST() argument 144 output.append(dist(urbg) ? "1" : "0"); in TEST() 151 absl::bernoulli_distribution dist(kP); in TEST() local 152 auto v = generate(dist); in TEST() 154 EXPECT_EQ(v, "00000000000010000000000010000000000") << dist; in TEST() 157 absl::bernoulli_distribution dist(kP * 10.0); in TEST() local 158 auto v = generate(dist); in TEST() 160 EXPECT_EQ(v, "00000100010010010010000011000011010") << dist; in TEST() [all …]
|
/third_party/boost/boost/math/distributions/detail/ |
D | derived_accessors.hpp | 42 typename Distribution::value_type variance(const Distribution& dist); 45 inline typename Distribution::value_type standard_deviation(const Distribution& dist) in standard_deviation() argument 48 return sqrt(variance(dist)); in standard_deviation() 52 inline typename Distribution::value_type variance(const Distribution& dist) in variance() argument 54 typename Distribution::value_type result = standard_deviation(dist); in variance() 59 inline typename Distribution::value_type hazard(const Distribution& dist, const RealType& x) in hazard() argument 64 value_type p = cdf(complement(dist, x)); in hazard() 65 value_type d = pdf(dist, x); in hazard() 78 inline typename Distribution::value_type chf(const Distribution& dist, const RealType& x) in chf() argument 82 return -log(cdf(complement(dist, x))); in chf() [all …]
|
/third_party/boost/libs/math/dot_net_example/distribution_explorer/ |
D | DistexForm.cs | 125 private boost_math.any_distribution dist; field in distribution_explorer.DistexForm 136 double pdf = dist.pdf(x); // Compute pdf values from x in dataGridView1_CellEndEdit() 137 double cdf = dist.cdf(x); // & cdf in dataGridView1_CellEndEdit() 138 double ccdf = dist.ccdf(x); // & complements. in dataGridView1_CellEndEdit() 166 mean.Text = dist.mean().ToString(); in tabPage2_Enter() 174 mode.Text = dist.mode().ToString(); in tabPage2_Enter() 182 median.Text = dist.median().ToString(); in tabPage2_Enter() 190 variance.Text = dist.variance().ToString(); in tabPage2_Enter() 198 standard_deviation.Text = dist.standard_deviation().ToString(); in tabPage2_Enter() 206 skewness.Text = dist.skewness().ToString(); in tabPage2_Enter() [all …]
|
/third_party/gstreamer/gstreamer/tests/check/libs/ |
D | adapter.c | 367 guint64 dist; in GST_START_TEST() local 383 timestamp = gst_adapter_prev_pts (adapter, &dist); in GST_START_TEST() 385 fail_unless (dist == 0); in GST_START_TEST() 391 offset = gst_adapter_prev_offset (adapter, &dist); in GST_START_TEST() 393 fail_unless (dist == 0); in GST_START_TEST() 399 dist = gst_adapter_distance_from_discont (adapter); in GST_START_TEST() 400 fail_unless (dist == 0); in GST_START_TEST() 407 timestamp = gst_adapter_prev_pts (adapter, &dist); in GST_START_TEST() 409 fail_unless (dist == 50); in GST_START_TEST() 415 offset = gst_adapter_prev_offset (adapter, &dist); in GST_START_TEST() [all …]
|