Home
last modified time | relevance | path

Searched refs:mean (Results 1 – 25 of 1444) sorted by relevance

12345678910>>...58

/third_party/boost/boost/math/distributions/
Dpoisson.hpp62 …inline bool check_mean(const char* function, const RealType& mean, RealType* result, const Policy&… in check_mean() argument
64 if(!(boost::math::isfinite)(mean) || (mean < 0)) in check_mean()
68 "Mean argument is %1%, but must be >= 0 !", mean, pol); in check_mean()
75 …inline bool check_mean_NZ(const char* function, const RealType& mean, RealType* result, const Poli… in check_mean_NZ() argument
77 if( !(boost::math::isfinite)(mean) || (mean <= 0)) in check_mean_NZ()
81 "Mean argument is %1%, but must be > 0 !", mean, pol); in check_mean_NZ()
88 …inline bool check_dist(const char* function, const RealType& mean, RealType* result, const Policy&… in check_dist() argument
90 return check_mean_NZ(function, mean, result, pol); in check_dist()
107 …inline bool check_dist_and_k(const char* function, RealType mean, RealType k, RealType* result, co… in check_dist_and_k() argument
109 if((check_dist(function, mean, result, pol) == false) || in check_dist_and_k()
[all …]
Dinverse_gaussian.hpp88 RealType mean()const in mean() function in boost::math::inverse_gaussian_distribution
139 RealType mean = dist.mean(); in pdf() local
146 if(false == detail::check_location(function, mean, &result, Policy())) in pdf()
150 if(false == detail::check_x_gt0(function, mean, &result, Policy())) in pdf()
166 * exp(-scale * (x - mean) * (x - mean) / (2 * x * mean * mean)); in pdf()
176 RealType mean = dist.mean(); in cdf() local
183 if(false == detail::check_location(function, mean, &result, Policy())) in cdf()
187 if (false == detail::check_x_gt0(function, mean, &result, Policy())) in cdf()
209 n0 *= ((x / mean) -1); in cdf()
211 RealType expfactor = exp(2 * scale / mean); in cdf()
[all …]
Dnormal.hpp44 RealType mean()const in mean() function in boost::math::normal_distribution
117 RealType mean = dist.mean(); in pdf() local
126 if(false == detail::check_location(function, mean, &result, Policy())) in pdf()
144 RealType exponent = x - mean; in pdf()
160 RealType mean = dist.mean(); in cdf() local
167 if(false == detail::check_location(function, mean, &result, Policy())) in cdf()
189 RealType diff = (x - mean) / (sd * constants::root_two<RealType>()); in cdf()
200 RealType mean = dist.mean(); in quantile() local
206 if(false == detail::check_location(function, mean, &result, Policy())) in quantile()
214 result += mean; in quantile()
[all …]
/third_party/boost/libs/accumulators/test/
Ddroppable.cpp27 accumulator_set<int, stats<droppable<tag::mean> > > acc, test_acc(sample = 0); in test_stat()
30 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_stat()
35 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat()
39 acc.drop<tag::mean>(); in test_stat()
42 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat()
46 assert_is_double(mean(acc)); in test_stat()
49 accumulator_set<int, stats<droppable<tag::mean(immediate)> > > acc2, test_acc2(sample = 0); in test_stat()
52 BOOST_CHECK_CLOSE(1., mean(acc2), 1e-5); in test_stat()
56 BOOST_CHECK_CLOSE(0.5, mean(acc2), 1e-5); in test_stat()
59 acc2.drop<tag::mean>(); in test_stat()
[all …]
Dmean.cpp26 typedef accumulator_set<int, stats<tag::mean,
29 typedef accumulator_set<int, stats<tag::mean(immediate),
40 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_stat()
46 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_stat()
52 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_stat()
57 assert_is_double(mean(acc)); in test_stat()
62 BOOST_CHECK_CLOSE(1., mean(acc2), 1e-5); in test_stat()
67 BOOST_CHECK_CLOSE(0.5, mean(acc2), 1e-5); in test_stat()
72 BOOST_CHECK_CLOSE(1., mean(acc2), 1e-5); in test_stat()
76 assert_is_double(mean(acc2)); in test_stat()
[all …]
Dexternal_accumulator.cpp26 accumulator_set<int, stats<tag::mean, tag::external<tag::sum, my::tag::sum_acc> > > acc; in test_stat()
31 BOOST_CHECK_CLOSE(1., mean(acc, my::sum_acc = sum_acc), 1e-5); in test_stat()
37 BOOST_CHECK_CLOSE(0.5, mean(acc, my::sum_acc = sum_acc), 1e-5); in test_stat()
43 BOOST_CHECK_CLOSE(1., mean(acc, my::sum_acc = sum_acc), 1e-5); in test_stat()
58 tag::mean in test_reference()
66 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_reference()
72 BOOST_CHECK_CLOSE(0.5, mean(acc), 1e-5); in test_reference()
78 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_reference()
93 tag::mean in test_reference2()
100 BOOST_CHECK_CLOSE(1., mean(acc), 1e-5); in test_reference2()
[all …]
Derror_of.cpp22 accumulator_set<double, stats<tag::error_of<tag::mean(lazy)> > > acc; in test_stat()
26 BOOST_CHECK_CLOSE(0.057735, accumulators::error_of<tag::mean(lazy)>(acc), 1e-4); in test_stat()
28 accumulator_set<double, stats<tag::error_of<tag::mean(immediate)> > > acc2; in test_stat()
32 BOOST_CHECK_CLOSE(0.057735, accumulators::error_of<tag::mean(immediate)>(acc2), 1e-4); in test_stat()
34 accumulator_set<double, stats<with_error<tag::mean(lazy)> > > acc3; in test_stat()
38 BOOST_CHECK_CLOSE(0.057735, accumulators::error_of<tag::mean(lazy)>(acc3), 1e-4); in test_stat()
40 accumulator_set<double, stats<with_error<tag::mean(immediate)> > > acc4; in test_stat()
44 BOOST_CHECK_CLOSE(0.057735, accumulators::error_of<tag::mean(immediate)>(acc4), 1e-4); in test_stat()
/third_party/boost/libs/math/example/
Dfind_mean_and_sd_normal.cpp66 double mean = 3.; // kg in main() local
68 normal packs(mean, standard_deviation); in main()
84 cout <<"Fraction of packs <= " << minimum_weight << " with a mean of " << mean in main()
100 << " with a mean of " << xpacks.mean() in main()
108 double offset = mean - low_limit - quantile(packs, under_fraction); in main()
109 double nominal_mean = mean + offset; in main()
155 cauchy cpacks(mean, standard_deviation); in main()
156 cout << "Cauchy Setting the packer to " << mean << " will mean that " in main()
227 << ", mean = " << packs.mean() << ", sd = " << packs.standard_deviation() << endl; in main()
237 normal pack05(mean, 0.05); in main()
[all …]
Dfind_root_example.cpp52 double mean = 3.; // kg in main() local
54 normal packs(mean, standard_deviation); in main()
61 cout <<"fraction of packs <= " << under_weight << " with a mean of " << mean in main()
70 << " with a mean of " << xpacks.mean() in main()
75 double offset = mean - low_limit - quantile(packs, under_fraction); in main()
76 double nominal_mean = mean + offset; in main()
96 << ", mean = " << packs.mean() << ", sd = " << packs.standard_deviation() << endl; // in main()
106 normal pack05(mean, 0.05); in main()
108 << ", mean = " << pack05.mean() << ", sd = " << pack05.standard_deviation() << endl; in main()
110 cout <<"Fraction of packs >= " << under_weight << " with a mean of " << mean in main()
[all …]
Dstudents_t_example1.cpp67 double mean = (value[0] + value[1] + value[2]) / static_cast<double>(values); in main() local
68 …cout << "Standard = " << standard << ", mean = " << mean << ", (mean - standard) = " << mean - sta… in main()
69 … sd = sqrt(((value[0] - mean) * (value[0] - mean) + (value[1] - mean) * (value[1] - mean) + (value… in main()
78 double t = (mean - standard) * std::sqrt(static_cast<double>(values)) / sd; in main()
Dnormal_misc_examples.cpp50 cout << "Standard normal distribution, mean = "<< s.mean() in main()
68 cout << "Standard normal mean = "<< s.mean() in main()
242 double mean = 140.; // sacks per week. in main() local
244 normal sacks(mean, standard_deviation); in main()
274 double mean = 3.; // kg in main() local
276 normal packs(mean, standard_deviation); in main()
283 cout <<"fraction of packs <= " << under_weight << " with a mean of " << mean in main()
292 << " with a mean of " << xpacks.mean() in main()
297 double offset = mean - low_limit - quantile(packs, under_fraction); in main()
298 double nominal_mean = mean + offset; in main()
[all …]
/third_party/boost/boost/accumulators/statistics/
Dkurtosis.hpp59 - 4. * accumulators::moment<3>(args) * mean(args) in result()
60 + 6. * accumulators::moment<2>(args) * mean(args) * mean(args) in result()
61 - 3. * mean(args) * mean(args) * mean(args) * mean(args) in result()
62 , ( accumulators::moment<2>(args) - mean(args) * mean(args) ) in result()
63 * ( accumulators::moment<2>(args) - mean(args) * mean(args) ) in result()
80 : depends_on<mean, moment<2>, moment<3>, moment<4> >
Dmean.hpp59 : mean(numeric::fdiv(args[sample | Sample()], numeric::one<std::size_t>::value)) in immediate_mean_impl()
67 this->mean = numeric::fdiv( in operator ()()
68 (this->mean * (cnt - 1)) + args[parameter::keyword<Tag>::get()] in operator ()()
75 return this->mean; in result()
81 ar & mean; in serialize() local
85 result_type mean; member
100 struct mean struct
155 extractor<tag::mean> const mean = {}; variable
159 BOOST_ACCUMULATORS_IGNORE_GLOBAL(mean)
163 using extract::mean;
[all …]
Dskewness.hpp62 - 3. * accumulators::moment<2>(args) * mean(args) in result()
63 + 2. * mean(args) * mean(args) * mean(args) in result()
64 , ( accumulators::moment<2>(args) - mean(args) * mean(args) ) in result()
65 * std::sqrt( accumulators::moment<2>(args) - mean(args) * mean(args) ) in result()
82 : depends_on<mean, moment<2>, moment<3> >
/third_party/boost/boost/histogram/accumulators/
Dmean.hpp27 class mean { class
32 mean() = default;
36 mean(const mean<T>& o) noexcept in mean() function in boost::histogram::accumulators::mean
40 mean(const_reference n, const_reference mean, const_reference variance) noexcept in mean() argument
41 : sum_(n), mean_(mean), sum_of_deltas_squared_(variance * (n - 1)) {} in mean()
60 mean& operator+=(const mean& rhs) noexcept { in operator +=()
74 mean& operator*=(const_reference s) noexcept { in operator *=()
80 bool operator==(const mean& rhs) const noexcept { in operator ==()
85 bool operator!=(const mean& rhs) const noexcept { return !operator==(rhs); } in operator !=()
130 struct version<boost::histogram::accumulators::mean<T>> : std::integral_constant<int, 1> {
[all …]
/third_party/typescript/tests/baselines/reference/
Dmaximum10SpellingSuggestions.errors.txt1 …er/maximum10SpellingSuggestions.ts(4,1): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
2 …er/maximum10SpellingSuggestions.ts(4,6): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
3 …r/maximum10SpellingSuggestions.ts(4,11): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
4 …r/maximum10SpellingSuggestions.ts(4,16): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
5 …r/maximum10SpellingSuggestions.ts(4,21): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
6 …r/maximum10SpellingSuggestions.ts(4,26): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
7 …r/maximum10SpellingSuggestions.ts(4,31): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
8 …r/maximum10SpellingSuggestions.ts(4,36): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
9 …r/maximum10SpellingSuggestions.ts(4,41): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
10 …r/maximum10SpellingSuggestions.ts(4,46): error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
[all …]
DnoImplicitAnyNamelessParameter.errors.txt1 …essParameter.ts(2,17): error TS7051: Parameter has a name but no type. Did you mean 'arg0: string'?
2 …NamelessParameter.ts(2,25): error TS7051: Parameter has a name but no type. Did you mean 'arg1: C'?
3 …NamelessParameter.ts(3,19): error TS7051: Parameter has a name but no type. Did you mean 'arg0: C'?
4 …essParameter.ts(3,22): error TS7051: Parameter has a name but no type. Did you mean 'arg1: number'?
5 …ssParameter.ts(4,20): error TS7051: Parameter has a name but no type. Did you mean 'arg0: boolean'?
6 …NamelessParameter.ts(4,29): error TS7051: Parameter has a name but no type. Did you mean 'arg1: C'?
7 …essParameter.ts(4,32): error TS7051: Parameter has a name but no type. Did you mean 'arg2: object'?
8 …Parameter.ts(4,40): error TS7051: Parameter has a name but no type. Did you mean 'arg3: undefined'?
15 !!! error TS7051: Parameter has a name but no type. Did you mean 'arg0: string'?
17 !!! error TS7051: Parameter has a name but no type. Did you mean 'arg1: C'?
[all …]
DjsxParsingError3.errors.txt1 tests/cases/conformance/jsx/Error1.tsx(1,15): error TS1381: Unexpected token. Did you mean `{'}'}` …
2 tests/cases/conformance/jsx/Error2.tsx(1,15): error TS1382: Unexpected token. Did you mean `{'>'}` …
3 tests/cases/conformance/jsx/Error3.tsx(1,22): error TS1381: Unexpected token. Did you mean `{'}'}` …
4 tests/cases/conformance/jsx/Error4.tsx(1,22): error TS1382: Unexpected token. Did you mean `{'>'}` …
5 tests/cases/conformance/jsx/Error5.tsx(1,15): error TS1381: Unexpected token. Did you mean `{'}'}` …
6 tests/cases/conformance/jsx/Error6.tsx(1,15): error TS1382: Unexpected token. Did you mean `{'>'}` …
20 !!! error TS1381: Unexpected token. Did you mean `{'}'}` or `&rbrace;`?
25 !!! error TS1382: Unexpected token. Did you mean `{'>'}` or `&gt;`?
30 !!! error TS1381: Unexpected token. Did you mean `{'}'}` or `&rbrace;`?
35 !!! error TS1382: Unexpected token. Did you mean `{'>'}` or `&gt;`?
[all …]
DparameterNamesInTypeParameterList.errors.txt1 …r/parameterNamesInTypeParameterList.ts(1,30): error TS2552: Cannot find name 'a'. Did you mean 'A'?
2 …r/parameterNamesInTypeParameterList.ts(5,30): error TS2552: Cannot find name 'a'. Did you mean 'A'?
3 …r/parameterNamesInTypeParameterList.ts(9,30): error TS2552: Cannot find name 'a'. Did you mean 'A'?
4 …/parameterNamesInTypeParameterList.ts(14,22): error TS2552: Cannot find name 'a'. Did you mean 'A'?
5 …/parameterNamesInTypeParameterList.ts(17,22): error TS2552: Cannot find name 'a'. Did you mean 'A'?
6 …/parameterNamesInTypeParameterList.ts(20,22): error TS2552: Cannot find name 'a'. Did you mean 'A'?
12 !!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
19 !!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
26 !!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
34 !!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dpoisson_distribution_test.cc113 const double mean = std::min(kMax, m); in TYPED_TEST() local
114 const param_type param(mean); in TYPED_TEST()
117 absl::poisson_distribution<TypeParam> before(mean); in TYPED_TEST()
118 EXPECT_EQ(before.mean(), param.mean()); in TYPED_TEST()
137 ABSL_INTERNAL_LOG(INFO, absl::StrCat("Range {", param.mean(), "}: ", in TYPED_TEST()
146 EXPECT_NE(before.mean(), after.mean()); in TYPED_TEST()
152 EXPECT_EQ(before.mean(), after.mean()) // in TYPED_TEST()
165 explicit PoissonModel(double mean) : mean_(mean) {} in PoissonModel() argument
167 double mean() const { return mean_; } in mean() function in __anonf37348890111::PoissonModel
217 const size_t max_i = 50 * stddev() + mean(); in InitCDF()
[all …]
Dpoisson_distribution.h61 explicit param_type(double mean = 1.0);
63 double mean() const { return mean_; } in mean() function
90 explicit poisson_distribution(double mean) : param_(mean) {} in poisson_distribution() argument
112 double mean() const { return param_.mean(); } in mean() function
133 poisson_distribution<IntType>::param_type::param_type(double mean) in param_type() argument
134 : mean_(mean), split_(0) { in param_type()
135 assert(mean >= 0); in param_type()
136 assert(mean <= (std::numeric_limits<result_type>::max)()); in param_type()
140 assert(mean <= 1e10); in param_type()
237 os << x.mean();
[all …]
/third_party/abseil-cpp/absl/random/
Dpoisson_distribution_test.cc113 const double mean = std::min(kMax, m); in TYPED_TEST() local
114 const param_type param(mean); in TYPED_TEST()
117 absl::poisson_distribution<TypeParam> before(mean); in TYPED_TEST()
118 EXPECT_EQ(before.mean(), param.mean()); in TYPED_TEST()
137 ABSL_INTERNAL_LOG(INFO, absl::StrCat("Range {", param.mean(), "}: ", in TYPED_TEST()
146 EXPECT_NE(before.mean(), after.mean()); in TYPED_TEST()
152 EXPECT_EQ(before.mean(), after.mean()) // in TYPED_TEST()
165 explicit PoissonModel(double mean) : mean_(mean) {} in PoissonModel() argument
167 double mean() const { return mean_; } in mean() function in __anoncfedc9340111::PoissonModel
217 const size_t max_i = 50 * stddev() + mean(); in InitCDF()
[all …]
Dgaussian_distribution_test.cc84 const TypeParam mean = (mod & 0x1) ? -x : x; in TYPED_TEST() local
86 const param_type param(mean, stddev); in TYPED_TEST()
88 absl::gaussian_distribution<TypeParam> before(mean, stddev); in TYPED_TEST()
89 EXPECT_EQ(before.mean(), param.mean()); in TYPED_TEST()
110 INFO, absl::StrFormat("Range{%f, %f}: %f, %f", mean, stddev, in TYPED_TEST()
117 if (!std::isfinite(mean) || !std::isfinite(stddev)) { in TYPED_TEST()
125 EXPECT_NE(before.mean(), after.mean()); in TYPED_TEST()
142 if (mean <= std::numeric_limits<double>::max() && in TYPED_TEST()
143 mean >= std::numeric_limits<double>::lowest()) { in TYPED_TEST()
144 EXPECT_EQ(static_cast<double>(before.mean()), in TYPED_TEST()
[all …]
Dpoisson_distribution.h61 explicit param_type(double mean = 1.0);
63 double mean() const { return mean_; } in mean() function
90 explicit poisson_distribution(double mean) : param_(mean) {} in poisson_distribution() argument
112 double mean() const { return param_.mean(); } in mean() function
133 poisson_distribution<IntType>::param_type::param_type(double mean) in param_type() argument
134 : mean_(mean), split_(0) { in param_type()
135 assert(mean >= 0); in param_type()
136 assert(mean <= (std::numeric_limits<result_type>::max)()); in param_type()
140 assert(mean <= 1e10); in param_type()
237 os << x.mean();
[all …]
/third_party/boost/libs/histogram/test/
Dboost_accumulators_support_test.cpp23 using mean = ba::accumulator_set<double, ba::stats<ba::tag::mean> >; in main() typedef
25 auto h = make_histogram_with(dense_storage<mean>(), axis::integer<>(0, 2)); in main()
32 BOOST_TEST_EQ(ba::mean(h[0]), 2); in main()
34 BOOST_TEST_EQ(ba::mean(h[1]), 2.5); in main()
39 BOOST_TEST_EQ(ba::mean(h2[0]), 2); in main()
41 BOOST_TEST_EQ(ba::mean(h2[1]), 2.5); in main()

12345678910>>...58