/external/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/ |
D | eval_param.pass.cpp | 64 double x_mean = p.b() * std::tgamma(1 + 1/p.a()); in main() local 65 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.a()) - sqr(x_mean); in main() 67 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main() 70 4*x_skew*x_var*sqrt(x_var)*x_mean - in main() 71 6*sqr(x_mean)*x_var - sqr(sqr(x_mean))) / sqr(x_var) - 3; in main() 72 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 109 double x_mean = p.b() * std::tgamma(1 + 1/p.a()); in main() local 110 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.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 …]
|
D | eval.pass.cpp | 63 double x_mean = d.b() * std::tgamma(1 + 1/d.a()); in main() local 64 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main() 66 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main() 69 4*x_skew*x_var*sqrt(x_var)*x_mean - in main() 70 6*sqr(x_mean)*x_var - sqr(sqr(x_mean))) / sqr(x_var) - 3; in main() 71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 107 double x_mean = d.b() * std::tgamma(1 + 1/d.a()); in main() local 108 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main() 110 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main() 113 4*x_skew*x_var*sqrt(x_var)*x_mean - in main() [all …]
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/ |
D | eval.pass.cpp | 63 double x_mean = d.t() * d.p(); in main() local 64 double x_var = x_mean*(1-d.p()); in main() 67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 103 double x_mean = d.t() * d.p(); in main() local 104 double x_var = x_mean*(1-d.p()); in main() 107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 143 double x_mean = d.t() * d.p(); in main() local 144 double x_var = x_mean*(1-d.p()); in main() 147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 189 double x_mean = d.t() * d.p(); in main() local [all …]
|
D | eval_param.pass.cpp | 65 double x_mean = p.t() * p.p(); in main() local 66 double x_var = x_mean*(1-p.p()); in main() 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 107 double x_mean = p.t() * p.p(); in main() local 108 double x_var = x_mean*(1-p.p()); in main() 111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 149 double x_mean = p.t() * p.p(); in main() local 150 double x_var = x_mean*(1-p.p()); in main() 153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/ |
D | eval.pass.cpp | 63 double x_mean = (1 - d.p()) / d.p(); in main() local 64 double x_var = x_mean / d.p(); in main() 67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 103 double x_mean = (1 - d.p()) / d.p(); in main() local 104 double x_var = x_mean / d.p(); in main() 107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 143 double x_mean = (1 - d.p()) / d.p(); in main() local 144 double x_var = x_mean / d.p(); in main() 147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 183 double x_mean = (1 - d.p()) / d.p(); in main() local [all …]
|
D | eval_param.pass.cpp | 65 double x_mean = (1 - p.p()) / p.p(); in main() local 66 double x_var = x_mean / p.p(); in main() 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 107 double x_mean = (1 - p.p()) / p.p(); in main() local 108 double x_var = x_mean / p.p(); in main() 111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 149 double x_mean = (1 - p.p()) / p.p(); in main() local 150 double x_var = x_mean / p.p(); in main() 153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/ |
D | eval.pass.cpp | 63 double x_mean = d.k() * (1 - d.p()) / d.p(); in main() local 64 double x_var = x_mean / d.p(); in main() 67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 103 double x_mean = d.k() * (1 - d.p()) / d.p(); in main() local 104 double x_var = x_mean / d.p(); in main() 107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 143 double x_mean = d.k() * (1 - d.p()) / d.p(); in main() local 144 double x_var = x_mean / d.p(); in main() 147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 183 double x_mean = d.k() * (1 - d.p()) / d.p(); in main() local [all …]
|
D | eval_param.pass.cpp | 65 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local 66 double x_var = x_mean / p.p(); in main() 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 107 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local 108 double x_var = x_mean / p.p(); in main() 111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 149 double x_mean = p.k() * (1 - p.p()) / p.p(); in main() local 150 double x_var = x_mean / p.p(); in main() 153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/ |
D | eval.pass.cpp | 63 double x_mean = ((double)d.a() + d.b()) / 2; in main() local 68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 104 double x_mean = ((double)d.a() + d.b()) / 2; in main() local 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 145 double x_mean = ((double)d.a() + d.b()) / 2; in main() local 150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 186 double x_mean = ((double)d.a() + d.b()) / 2; in main() local 191 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 227 double x_mean = ((double)d.a() + d.b()) / 2; in main() local 232 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() [all …]
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/ |
D | eval.pass.cpp | 63 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local 67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 103 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local 107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 143 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local 147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 183 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local 187 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 223 D::result_type x_mean = (d.a() + d.b()) / 2; in main() local 227 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() [all …]
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/ |
D | eval.pass.cpp | 62 double x_mean = d.a() + d.b() * 0.577215665; in main() local 66 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 101 double x_mean = d.a() + d.b() * 0.577215665; in main() local 105 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 140 double x_mean = d.a() + d.b() * 0.577215665; in main() local 144 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 179 double x_mean = d.a() + d.b() * 0.577215665; in main() local 183 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
D | eval_param.pass.cpp | 63 double x_mean = p.a() + p.b() * 0.577215665; in main() local 67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 103 double x_mean = p.a() + p.b() * 0.577215665; in main() local 107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 143 double x_mean = p.a() + p.b() * 0.577215665; in main() local 147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 183 double x_mean = p.a() + p.b() * 0.577215665; in main() local 187 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/ |
D | eval.pass.cpp | 63 double x_mean = 1/d.lambda(); in main() local 67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 103 double x_mean = 1/d.lambda(); in main() local 107 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/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/ |
D | eval.pass.cpp | 62 double x_mean = d.mean(); in main() local 66 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 101 double x_mean = d.mean(); in main() local 105 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 140 double x_mean = d.mean(); in main() local 144 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
D | eval_param.pass.cpp | 64 double x_mean = p.mean(); in main() local 68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 105 double x_mean = p.mean(); in main() local 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 146 double x_mean = p.mean(); in main() local 150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.gamma/ |
D | eval_param.pass.cpp | 64 double x_mean = p.alpha() * p.beta(); in main() local 68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 105 double x_mean = p.alpha() * p.beta(); in main() local 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 146 double x_mean = p.alpha() * p.beta(); in main() local 150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
D | eval.pass.cpp | 63 double x_mean = d.alpha() * d.beta(); in main() local 67 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() 143 double x_mean = d.alpha() * d.beta(); in main() local 147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/ |
D | eval_param.pass.cpp | 64 double x_mean = p.n(); in main() local 68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 105 double x_mean = p.n(); in main() local 109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 146 double x_mean = p.n(); in main() local 150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
D | eval.pass.cpp | 63 double x_mean = d.n(); in main() local 67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 103 double x_mean = d.n(); in main() local 107 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()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/ |
D | eval_param.pass.cpp | 65 double x_mean = std::exp(p.m() + sqr(p.s())/2); in main() local 71 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 108 double x_mean = std::exp(p.m() + sqr(p.s())/2); in main() local 114 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 151 double x_mean = std::exp(p.m() + sqr(p.s())/2); in main() local 157 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 194 double x_mean = std::exp(p.m() + sqr(p.s())/2); in main() local 200 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 237 double x_mean = std::exp(p.m() + sqr(p.s())/2); in main() local 243 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
D | eval.pass.cpp | 63 double x_mean = std::exp(d.m() + sqr(d.s())/2); in main() local 69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 105 double x_mean = std::exp(d.m() + sqr(d.s())/2); in main() local 111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 147 double x_mean = std::exp(d.m() + sqr(d.s())/2); in main() local 153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 189 double x_mean = std::exp(d.m() + sqr(d.s())/2); in main() local 195 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 231 double x_mean = std::exp(d.m() + sqr(d.s())/2); in main() local 237 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ |
D | eval.pass.cpp | 82 double x_mean = (b[i+1] + b[i]) / 2; in main() local 86 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 142 double x_mean = (b[i+1] + b[i]) / 2; in main() local 146 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 202 double x_mean = (b[i+1] + b[i]) / 2; in main() local 206 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 262 double x_mean = (b[i+1] + b[i]) / 2; in main() local 266 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 322 double x_mean = (b[i+1] + b[i]) / 2; in main() local 326 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() [all …]
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/ |
D | eval.pass.cpp | 58 double x_mean = d.p(); in main() local 62 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 94 double x_mean = d.p(); in main() local 98 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
D | eval_param.pass.cpp | 60 double x_mean = p.p(); in main() local 64 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main() 98 double x_mean = p.p(); in main() local 102 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
|
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.t/ |
D | eval.pass.cpp | 59 double x_mean = 0; in main() local 63 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() 131 double x_mean = 0; in main() local 135 assert(std::abs(mean - x_mean) < 0.01); in main()
|