/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/ |
D | eval_param.pass.cpp | 68 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.a()) - sqr(x_mean); in main() local 70 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main() 71 (std::sqrt(x_var)*x_var); 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() 76 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 113 double x_var = sqr(p.b()) * std::tgamma(1 + 2/p.a()) - sqr(x_mean); in main() local 115 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main() 116 (std::sqrt(x_var)*x_var); in main() 118 4*x_skew*x_var*sqrt(x_var)*x_mean - in main() [all …]
|
D | eval.pass.cpp | 66 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main() local 68 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main() 69 (std::sqrt(x_var)*x_var); 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() 74 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 109 double x_var = sqr(d.b()) * std::tgamma(1 + 2/d.a()) - sqr(x_mean); in main() local 111 3*x_mean*x_var - sqr(x_mean)*x_mean) / in main() 112 (std::sqrt(x_var)*x_var); 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/ |
D | eval.pass.cpp | 66 double x_var = x_mean*(1-d.p()); in test1() local 67 double x_skew = (1-2*d.p()) / std::sqrt(x_var); in test1() 68 double x_kurtosis = (1-6*d.p()*(1-d.p())) / x_var; in test1() 70 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 109 double x_var = x_mean*(1-d.p()); in test2() local 110 double x_skew = (1-2*d.p()) / std::sqrt(x_var); in test2() 111 double x_kurtosis = (1-6*d.p()*(1-d.p())) / x_var; in test2() 113 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 152 double x_var = x_mean*(1-d.p()); in test3() local 153 double x_skew = (1-2*d.p()) / std::sqrt(x_var); in test3() [all …]
|
D | eval_param.pass.cpp | 68 double x_var = x_mean*(1-p.p()); in main() local 69 double x_skew = (1-2*p.p()) / std::sqrt(x_var); in main() 70 double x_kurtosis = (1-6*p.p()*(1-p.p())) / x_var; in main() 72 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 110 double x_var = x_mean*(1-p.p()); in main() local 111 double x_skew = (1-2*p.p()) / std::sqrt(x_var); in main() 112 double x_kurtosis = (1-6*p.p()*(1-p.p())) / x_var; in main() 114 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 152 double x_var = x_mean*(1-p.p()); in main() local 153 double x_skew = (1-2*p.p()) / std::sqrt(x_var); in main() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/ |
D | eval_param.pass.cpp | 67 double x_var = p.mean(); in main() local 68 double x_skew = 1 / std::sqrt(x_var); in main() 69 double x_kurtosis = 1 / x_var; in main() 71 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 108 double x_var = p.mean(); in main() local 109 double x_skew = 1 / std::sqrt(x_var); in main() 110 double x_kurtosis = 1 / x_var; in main() 112 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 149 double x_var = p.mean(); in main() local 150 double x_skew = 1 / std::sqrt(x_var); in main() [all …]
|
D | eval.pass.cpp | 127 double x_var = d.mean(); in main() local 128 double x_skew = 1 / std::sqrt(x_var); in main() 129 double x_kurtosis = 1 / x_var; in main() 131 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 166 double x_var = d.mean(); in main() local 167 double x_skew = 1 / std::sqrt(x_var); in main() 168 double x_kurtosis = 1 / x_var; in main() 170 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 205 double x_var = d.mean(); in main() local 206 double x_skew = 1 / std::sqrt(x_var); in main() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/ |
D | eval.pass.cpp | 67 double x_var = (sqr((double)d.b() - d.a() + 1) - 1) / 12; in main() local 72 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 108 double x_var = (sqr((double)d.b() - d.a() + 1) - 1) / 12; in main() local 113 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 149 double x_var = (sqr((double)d.b() - d.a() + 1) - 1) / 12; in main() local 154 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 190 double x_var = (sqr((double)d.b() - d.a() + 1) - 1) / 12; in main() local 195 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 231 double x_var = (sqr((double)d.b() - d.a() + 1) - 1) / 12; in main() local 236 assert(std::abs((var - x_var) / x_var) < 0.01); in main() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/ |
D | eval.pass.cpp | 60 double x_var = d.p()*(1-d.p()); in main() local 61 double x_skew = (1 - 2 * d.p())/std::sqrt(x_var); in main() 62 double x_kurtosis = (6 * sqr(d.p()) - 6 * d.p() + 1)/x_var; in main() 64 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 96 double x_var = d.p()*(1-d.p()); in main() local 97 double x_skew = (1 - 2 * d.p())/std::sqrt(x_var); in main() 98 double x_kurtosis = (6 * sqr(d.p()) - 6 * d.p() + 1)/x_var; in main() 100 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
D | eval_param.pass.cpp | 62 double x_var = p.p()*(1-p.p()); in main() local 63 double x_skew = (1 - 2 * p.p())/std::sqrt(x_var); in main() 64 double x_kurtosis = (6 * sqr(p.p()) - 6 * p.p() + 1)/x_var; in main() 66 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 100 double x_var = p.p()*(1-p.p()); in main() local 101 double x_skew = (1 - 2 * p.p())/std::sqrt(x_var); in main() 102 double x_kurtosis = (6 * sqr(p.p()) - 6 * p.p() + 1)/x_var; in main() 104 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/ |
D | eval.pass.cpp | 67 D::result_type x_var = sqr(d.b() - d.a()) / 12; in main() local 71 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 107 D::result_type x_var = sqr(d.b() - d.a()) / 12; in main() local 111 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 147 D::result_type x_var = sqr(d.b() - d.a()) / 12; in main() local 151 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 187 D::result_type x_var = sqr(d.b() - d.a()) / 12; in main() local 191 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 227 D::result_type x_var = sqr(d.b() - d.a()) / 12; in main() local 231 assert(std::abs((var - x_var) / x_var) < 0.01); in main() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/ |
D | eval.pass.cpp | 80 double x_var = x_mean / d.p(); in test1() local 84 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 123 double x_var = x_mean / d.p(); in test2() local 127 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 166 double x_var = x_mean / d.p(); in test3() local 170 assert(std::abs((var - x_var) / x_var) < 0.01); in test3() 209 double x_var = x_mean / d.p(); in test4() local 213 assert(std::abs((var - x_var) / x_var) < 0.01); in test4() 252 double x_var = x_mean / d.p(); in test5() local 256 assert(std::abs((var - x_var) / x_var) < 0.01); in test5() [all …]
|
D | eval_param.pass.cpp | 68 double x_var = x_mean / p.p(); in main() local 72 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 110 double x_var = x_mean / p.p(); in main() local 114 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 152 double x_var = x_mean / p.p(); in main() local 156 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/ |
D | eval.pass.cpp | 64 double x_var = sqr(d.b()) * 1.644934067; in test1() local 68 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 105 double x_var = sqr(d.b()) * 1.644934067; in test2() local 109 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 146 double x_var = sqr(d.b()) * 1.644934067; in test3() local 150 assert(std::abs((var - x_var) / x_var) < 0.01); in test3() 187 double x_var = sqr(d.b()) * 1.644934067; in test4() local 191 assert(std::abs((var - x_var) / x_var) < 0.01); in test4()
|
D | eval_param.pass.cpp | 66 double x_var = sqr(p.b()) * 1.644934067; in test1() local 70 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 109 double x_var = sqr(p.b()) * 1.644934067; in test2() local 113 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 152 double x_var = sqr(p.b()) * 1.644934067; in test3() local 156 assert(std::abs((var - x_var) / x_var) < 0.01); in test3() 195 double x_var = sqr(p.b()) * 1.644934067; in test4() local 199 assert(std::abs((var - x_var) / x_var) < 0.01); in test4()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/ |
D | eval.pass.cpp | 66 double x_var = x_mean / d.p(); in test1() local 70 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 109 double x_var = x_mean / d.p(); in test2() local 113 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 152 double x_var = x_mean / d.p(); in test3() local 156 assert(std::abs((var - x_var) / x_var) < 0.01); in test3() 195 double x_var = x_mean / d.p(); in test4() local 199 assert(var == x_var); in test4() 236 double x_var = x_mean / d.p(); in test5() local 240 assert(std::abs((var - x_var) / x_var) < 0.01); in test5() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.t/ |
D | eval.pass.cpp | 61 double x_var = d.n() / (d.n() - 2); in main() local 65 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 96 double x_var = d.n() / (d.n() - 2); in main() local 100 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 131 double x_var = d.n() / (d.n() - 2); in main() local 135 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
D | eval_param.pass.cpp | 63 double x_var = p.n() / (p.n() - 2); in main() local 67 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 100 double x_var = p.n() / (p.n() - 2); in main() local 104 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 137 double x_var = p.n() / (p.n() - 2); in main() local 141 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/ |
D | eval.pass.cpp | 65 double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); in test1() local 71 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 109 double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); in test2() local 115 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 153 double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); in test3() local 159 assert(std::abs((var - x_var) / x_var) < 0.01); in test3() 197 double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); in test4() local 203 assert(std::abs((var - x_var) / x_var) < 0.02); in test4() 241 double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s())); in test5() local 247 assert(std::abs((var - x_var) / x_var) < 0.04); in test5()
|
D | eval_param.pass.cpp | 67 double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); in test1() local 73 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 113 double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); in test2() local 119 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 159 double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); in test3() local 165 assert(std::abs((var - x_var) / x_var) < 0.01); in test3() 205 double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); in test4() local 211 assert(std::abs((var - x_var) / x_var) < 0.02); in test4() 251 double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s())); in test5() local 257 assert(std::abs((var - x_var) / x_var) < 0.04); in test5()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/ |
D | eval.pass.cpp | 66 double x_var = 2 * d.n(); in main() local 70 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 105 double x_var = 2 * d.n(); in main() local 109 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 144 double x_var = 2 * d.n(); in main() local 148 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
D | eval_param.pass.cpp | 68 double x_var = 2 * p.n(); in main() local 72 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 109 double x_var = 2 * p.n(); in main() local 113 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 150 double x_var = 2 * p.n(); in main() local 154 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/ |
D | eval.pass.cpp | 66 double x_var = 1/sqr(d.lambda()); in main() local 70 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 105 double x_var = 1/sqr(d.lambda()); in main() local 109 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 144 double x_var = 1/sqr(d.lambda()); in main() local 148 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/ |
D | eval.pass.cpp | 86 double x_var = sqr(b[i+1] - b[i]) / 12; in test1() local 90 assert(std::abs((var - x_var) / x_var) < 0.01); in test1() 149 double x_var = sqr(b[i+1] - b[i]) / 12; in test2() local 153 assert(std::abs((var - x_var) / x_var) < 0.01); in test2() 212 double x_var = sqr(b[i+1] - b[i]) / 12; in test3() local 216 assert(std::abs((var - x_var) / x_var) < 0.01); in test3() 275 double x_var = sqr(b[i+1] - b[i]) / 12; in test4() local 279 assert(std::abs((var - x_var) / x_var) < 0.01); in test4() 338 double x_var = sqr(b[i+1] - b[i]) / 12; in test5() local 342 assert(std::abs((var - x_var) / x_var) < 0.01); in test5() [all …]
|
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.gamma/ |
D | eval_param.pass.cpp | 67 double x_var = p.alpha() * sqr(p.beta()); in main() local 71 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 108 double x_var = p.alpha() * sqr(p.beta()); in main() local 112 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 149 double x_var = p.alpha() * sqr(p.beta()); in main() local 153 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|
D | eval.pass.cpp | 65 double x_var = d.alpha() * sqr(d.beta()); in main() local 69 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 104 double x_var = d.alpha() * sqr(d.beta()); in main() local 108 assert(std::abs((var - x_var) / x_var) < 0.01); in main() 143 double x_var = d.alpha() * sqr(d.beta()); in main() local 147 assert(std::abs((var - x_var) / x_var) < 0.01); in main()
|