Home
last modified time | relevance | path

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

12

/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/
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 …]
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 …]
/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/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/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/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/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/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.norm/rand.dist.norm.lognormal/
Deval.pass.cpp64 double x_mean = std::exp(d.m() + sqr(d.s())/2); in test1() local
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
108 double x_mean = std::exp(d.m() + sqr(d.s())/2); in test2() local
114 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
152 double x_mean = std::exp(d.m() + sqr(d.s())/2); in test3() local
158 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
196 double x_mean = std::exp(d.m() + sqr(d.s())/2); in test4() local
202 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test4()
240 double x_mean = std::exp(d.m() + sqr(d.s())/2); in test5() local
246 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test5()
Deval_param.pass.cpp66 double x_mean = std::exp(p.m() + sqr(p.s())/2); in test1() local
72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
112 double x_mean = std::exp(p.m() + sqr(p.s())/2); in test2() local
118 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
158 double x_mean = std::exp(p.m() + sqr(p.s())/2); in test3() local
164 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
204 double x_mean = std::exp(p.m() + sqr(p.s())/2); in test4() local
210 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test4()
250 double x_mean = std::exp(p.m() + sqr(p.s())/2); in test5() local
256 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test5()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/
Deval.pass.cpp65 double x_mean = d.n(); in main() local
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
104 double x_mean = d.n(); in main() local
108 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
143 double x_mean = d.n(); in main() local
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval_param.pass.cpp67 double x_mean = p.n(); in main() local
71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
108 double x_mean = p.n(); in main() local
112 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
149 double x_mean = p.n(); in main() local
153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/
Deval.pass.cpp65 double x_mean = 1/d.lambda(); in main() local
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
104 double x_mean = 1/d.lambda(); in main() local
108 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
143 double x_mean = 1/d.lambda(); in main() local
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/
Deval.pass.cpp85 double x_mean = (b[i+1] + b[i]) / 2; in test1() local
89 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test1()
148 double x_mean = (b[i+1] + b[i]) / 2; in test2() local
152 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test2()
211 double x_mean = (b[i+1] + b[i]) / 2; in test3() local
215 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test3()
274 double x_mean = (b[i+1] + b[i]) / 2; in test4() local
278 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test4()
337 double x_mean = (b[i+1] + b[i]) / 2; in test5() local
341 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in test5()
[all …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.gamma/
Deval_param.pass.cpp66 double x_mean = p.alpha() * p.beta(); in main() local
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
107 double x_mean = p.alpha() * p.beta(); in main() local
111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
148 double x_mean = p.alpha() * p.beta(); in main() local
152 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval.pass.cpp64 double x_mean = d.alpha() * d.beta(); in main() local
68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
103 double x_mean = d.alpha() * d.beta(); in main() local
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
142 double x_mean = d.alpha() * d.beta(); in main() local
146 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/
Deval_param.pass.cpp66 double x_mean = p.mean(); in main() local
70 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
107 double x_mean = p.mean(); in main() local
111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
148 double x_mean = p.mean(); in main() local
152 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval.pass.cpp126 double x_mean = d.mean(); in main() local
130 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
165 double x_mean = d.mean(); in main() local
169 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
204 double x_mean = d.mean(); in main() local
208 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.bernoulli/
Deval.pass.cpp59 double x_mean = d.p(); in main() local
63 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
95 double x_mean = d.p(); in main() local
99 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval_param.pass.cpp61 double x_mean = p.p(); in main() local
65 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
99 double x_mean = p.p(); in main() local
103 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.t/
Deval.pass.cpp60 double x_mean = 0; in main() local
64 assert(std::abs(mean - x_mean) < 0.01); in main()
95 double x_mean = 0; in main() local
99 assert(std::abs(mean - x_mean) < 0.01); in main()
130 double x_mean = 0; in main() local
134 assert(std::abs(mean - x_mean) < 0.01); in main()

12