Home
last modified time | relevance | path

Searched refs:x_mean (Results 1 – 25 of 68) sorted by relevance

123

/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/
Deval.pass.cpp65 double x_mean = d.b() * std::tgamma(1 + 1/d.a()); in main() local
66 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main()
68 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
71 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
72 6*sqr(x_mean)*x_var - sqr(sqr(x_mean))) / sqr(x_var) - 3; in main()
73 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
108 double x_mean = d.b() * std::tgamma(1 + 1/d.a()); in main() local
109 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main()
111 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
114 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
[all …]
Deval_param.pass.cpp67 double x_mean = p.b() * std::tgamma(1 + 1/p.a()); in main() local
68 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.a()) - sqr(x_mean); in main()
70 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
73 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
74 6*sqr(x_mean)*x_var - sqr(sqr(x_mean))) / sqr(x_var) - 3; in main()
75 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
112 double x_mean = p.b() * std::tgamma(1 + 1/p.a()); in main() local
113 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.a()) - sqr(x_mean); in main()
115 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
118 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
[all …]
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/
Deval.pass.cpp66 double x_mean = d.b() * std::tgamma(1 + 1/d.a()); in main() local
67 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main()
69 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
72 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
73 6*sqr(x_mean)*x_var - sqr(sqr(x_mean))) / sqr(x_var) - 3; in main()
74 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
109 double x_mean = d.b() * std::tgamma(1 + 1/d.a()); in main() local
110 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main()
112 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
115 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
[all …]
Deval_param.pass.cpp68 double x_mean = p.b() * std::tgamma(1 + 1/p.a()); in main() local
69 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.a()) - sqr(x_mean); in main()
71 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
74 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
75 6*sqr(x_mean)*x_var - sqr(sqr(x_mean))) / sqr(x_var) - 3; in main()
76 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
113 double x_mean = p.b() * std::tgamma(1 + 1/p.a()); in main() local
114 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.a()) - sqr(x_mean); in main()
116 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main()
119 4*x_skew*x_var*sqrt(x_var)*x_mean - in main()
[all …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp65 double x_mean = d.t() * d.p(); in test1() local
66 double x_var = x_mean*(1-d.p()); in test1()
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
108 double x_mean = d.t() * d.p(); in test2() local
109 double x_var = x_mean*(1-d.p()); in test2()
112 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
151 double x_mean = d.t() * d.p(); in test3() local
152 double x_var = x_mean*(1-d.p()); in test3()
155 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
200 double x_mean = d.t() * d.p(); in test4() local
[all …]
Deval_param.pass.cpp67 double x_mean = p.t() * p.p(); in main() local
68 double x_var = x_mean*(1-p.p()); in main()
71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
109 double x_mean = p.t() * p.p(); in main() local
110 double x_var = x_mean*(1-p.p()); in main()
113 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
151 double x_mean = p.t() * p.p(); in main() local
152 double x_var = x_mean*(1-p.p()); in main()
155 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp66 double x_mean = d.t() * d.p(); in test1() local
67 double x_var = x_mean*(1-d.p()); in test1()
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
109 double x_mean = d.t() * d.p(); in test2() local
110 double x_var = x_mean*(1-d.p()); in test2()
113 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
152 double x_mean = d.t() * d.p(); in test3() local
153 double x_var = x_mean*(1-d.p()); in test3()
156 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
201 double x_mean = d.t() * d.p(); in test4() local
[all …]
Deval_param.pass.cpp68 double x_mean = p.t() * p.p(); in main() local
69 double x_var = x_mean*(1-p.p()); in main()
72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
110 double x_mean = p.t() * p.p(); in main() local
111 double x_var = x_mean*(1-p.p()); in main()
114 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
152 double x_mean = p.t() * p.p(); in main() local
153 double x_var = x_mean*(1-p.p()); in main()
156 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/
Deval.pass.cpp79 double x_mean = (1 - d.p()) / d.p(); in test1() local
80 double x_var = x_mean / d.p(); in test1()
83 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
122 double x_mean = (1 - d.p()) / d.p(); in test2() local
123 double x_var = x_mean / d.p(); in test2()
126 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
165 double x_mean = (1 - d.p()) / d.p(); in test3() local
166 double x_var = x_mean / d.p(); in test3()
169 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
208 double x_mean = (1 - d.p()) / d.p(); in test4() local
[all …]
Deval_param.pass.cpp67 double x_mean = (1 - p.p()) / p.p(); in main() local
68 double x_var = x_mean / p.p(); in main()
71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
109 double x_mean = (1 - p.p()) / p.p(); in main() local
110 double x_var = x_mean / p.p(); in main()
113 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
151 double x_mean = (1 - p.p()) / p.p(); in main() local
152 double x_var = x_mean / p.p(); in main()
155 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/
Deval.pass.cpp76 double x_mean = (1 - d.p()) / d.p(); in test1() local
77 double x_var = x_mean / d.p(); in test1()
80 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
119 double x_mean = (1 - d.p()) / d.p(); in test2() local
120 double x_var = x_mean / d.p(); in test2()
123 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
162 double x_mean = (1 - d.p()) / d.p(); in test3() local
163 double x_var = x_mean / d.p(); in test3()
166 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
205 double x_mean = (1 - d.p()) / d.p(); in test4() local
[all …]
Deval_param.pass.cpp68 double x_mean = (1 - p.p()) / p.p(); in main() local
69 double x_var = x_mean / p.p(); in main()
72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
110 double x_mean = (1 - p.p()) / p.p(); in main() local
111 double x_var = x_mean / p.p(); in main()
114 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
152 double x_mean = (1 - p.p()) / p.p(); in main() local
153 double x_var = x_mean / p.p(); in main()
156 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/
Deval.pass.cpp65 double x_mean = d.k() * (1 - d.p()) / d.p(); in test1() local
66 double x_var = x_mean / d.p(); in test1()
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
108 double x_mean = d.k() * (1 - d.p()) / d.p(); in test2() local
109 double x_var = x_mean / d.p(); in test2()
112 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
151 double x_mean = d.k() * (1 - d.p()) / d.p(); in test3() local
152 double x_var = x_mean / d.p(); in test3()
155 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
194 double x_mean = d.k() * (1 - d.p()) / d.p(); in test4() local
[all …]
Deval_param.pass.cpp67 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local
68 double x_var = x_mean / p.p(); in main()
71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
109 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local
110 double x_var = x_mean / p.p(); in main()
113 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
151 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local
152 double x_var = x_mean / p.p(); in main()
155 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/
Deval.pass.cpp66 double x_mean = d.k() * (1 - d.p()) / d.p(); in test1() local
67 double x_var = x_mean / d.p(); in test1()
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
109 double x_mean = d.k() * (1 - d.p()) / d.p(); in test2() local
110 double x_var = x_mean / d.p(); in test2()
113 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
152 double x_mean = d.k() * (1 - d.p()) / d.p(); in test3() local
153 double x_var = x_mean / d.p(); in test3()
156 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
195 double x_mean = d.k() * (1 - d.p()) / d.p(); in test4() local
[all …]
Deval_param.pass.cpp68 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local
69 double x_var = x_mean / p.p(); in main()
72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
110 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local
111 double x_var = x_mean / p.p(); in main()
114 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
152 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local
153 double x_var = x_mean / p.p(); in main()
156 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/
Deval.pass.cpp66 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
107 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
112 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
148 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
189 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
194 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
230 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
235 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
[all …]
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/
Deval.pass.cpp67 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
108 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
113 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
149 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
154 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
190 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
195 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
231 double x_mean = ((double)d.a() + d.b()) / 2; in main() local
236 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
[all …]
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/
Deval.pass.cpp64 double x_mean = d.a() + d.b() * 0.577215665; in test1() local
68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
105 double x_mean = d.a() + d.b() * 0.577215665; in test2() local
109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
146 double x_mean = d.a() + d.b() * 0.577215665; in test3() local
150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
187 double x_mean = d.a() + d.b() * 0.577215665; in test4() local
191 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test4()
Deval_param.pass.cpp66 double x_mean = p.a() + p.b() * 0.577215665; in test1() local
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
109 double x_mean = p.a() + p.b() * 0.577215665; in test2() local
113 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
152 double x_mean = p.a() + p.b() * 0.577215665; in test3() local
156 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
195 double x_mean = p.a() + p.b() * 0.577215665; in test4() local
199 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test4()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/
Deval.pass.cpp63 double x_mean = d.a() + d.b() * 0.577215665; in test1() local
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
104 double x_mean = d.a() + d.b() * 0.577215665; in test2() local
108 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
145 double x_mean = d.a() + d.b() * 0.577215665; in test3() local
149 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
186 double x_mean = d.a() + d.b() * 0.577215665; in test4() local
190 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test4()
Deval_param.pass.cpp65 double x_mean = p.a() + p.b() * 0.577215665; in test1() local
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
108 double x_mean = p.a() + p.b() * 0.577215665; in test2() local
112 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
151 double x_mean = p.a() + p.b() * 0.577215665; in test3() local
155 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
194 double x_mean = p.a() + p.b() * 0.577215665; in test4() local
198 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test4()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp66 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
106 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
110 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
146 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
186 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
190 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
226 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
230 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
[all …]
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp67 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
107 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
147 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
151 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
187 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
191 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
227 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local
231 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
[all …]
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/
Deval.pass.cpp66 double x_mean = 1/d.lambda(); in main() local
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
105 double x_mean = 1/d.lambda(); in main() local
109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
144 double x_mean = 1/d.lambda(); in main() local
148 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()

123