Home
last modified time | relevance | path

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

123

/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/
Deval.pass.cpp45 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
51 double d = (u[i] - mean); in main()
62 double x_mean = d.mean(); in main()
63 double x_var = d.mean(); in main()
66 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
84 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
90 double d = (u[i] - mean); in main()
101 double x_mean = d.mean(); in main()
102 double x_var = d.mean(); in main()
105 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
[all …]
Deval_param.pass.cpp47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
53 double d = (u[i] - mean); in main()
64 double x_mean = p.mean(); in main()
65 double x_var = p.mean(); in main()
68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
88 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
94 double d = (u[i] - mean); in main()
105 double x_mean = p.mean(); in main()
106 double x_var = p.mean(); in main()
109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp45 double mean = std::accumulate(u.begin(), u.end(), in main() local
52 double d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
85 double mean = std::accumulate(u.begin(), u.end(), in main() local
92 double d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
125 double mean = std::accumulate(u.begin(), u.end(), in main() local
132 double d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
165 double mean = std::accumulate(u.begin(), u.end(), in main() local
[all …]
Deval_param.pass.cpp47 double mean = std::accumulate(u.begin(), u.end(), in main() local
54 double d = (u[i] - mean); in main()
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
89 double mean = std::accumulate(u.begin(), u.end(), in main() local
96 double d = (u[i] - mean); in main()
111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
131 double mean = std::accumulate(u.begin(), u.end(), in main() local
138 double d = (u[i] - mean); in main()
153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.t/
Deval.pass.cpp42 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
48 double d = (u[i] - mean); in main()
63 assert(std::abs(mean - x_mean) < 0.01); in main()
78 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
84 double d = (u[i] - mean); in main()
99 assert(std::abs(mean - x_mean) < 0.01); in main()
114 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
120 double d = (u[i] - mean); in main()
135 assert(std::abs(mean - x_mean) < 0.01); in main()
Deval_param.pass.cpp43 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
49 double d = (u[i] - mean); in main()
64 assert(std::abs(mean - x_mean) < 0.01); in main()
80 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
86 double d = (u[i] - mean); in main()
101 assert(std::abs(mean - x_mean) < 0.01); in main()
117 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
123 double d = (u[i] - mean); in main()
138 assert(std::abs(mean - x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/
Dctor_double_double.pass.cpp25 assert(d.mean() == 0); in main()
31 assert(d.mean() == 14.5); in main()
37 assert(d.mean() == 14.5); in main()
Dparam_ctor.pass.cpp27 assert(p.mean() == 0); in main()
34 assert(p.mean() == 10); in main()
41 assert(p.mean() == 10); in main()
Deval_param.pass.cpp43 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
49 double d = (u[i] - mean); in main()
60 double x_mean = p.mean(); in main()
64 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval.pass.cpp42 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
48 double d = (u[i] - mean); in main()
59 double x_mean = d.mean(); in main()
63 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/
Deval.pass.cpp45 double mean = std::accumulate(u.begin(), u.end(), in main() local
52 double d = (u[i] - mean); in main()
68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
86 double mean = std::accumulate(u.begin(), u.end(), in main() local
93 double d = (u[i] - mean); in main()
109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
127 double mean = std::accumulate(u.begin(), u.end(), in main() local
134 double d = (u[i] - mean); in main()
150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
168 double mean = std::accumulate(u.begin(), u.end(), in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/
Deval.pass.cpp45 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
51 double d = (u[i] - mean); in main()
66 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
84 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
90 double d = (u[i] - mean); in main()
105 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
123 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
129 double d = (u[i] - mean); in main()
144 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
162 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
[all …]
Deval_param.pass.cpp46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
52 double d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
86 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
92 double d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
126 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
132 double d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
166 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/
Deval.pass.cpp45 double mean = std::accumulate(u.begin(), u.end(), in main() local
52 double d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
85 double mean = std::accumulate(u.begin(), u.end(), in main() local
92 double d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
125 double mean = std::accumulate(u.begin(), u.end(), in main() local
132 double d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
165 double mean = std::accumulate(u.begin(), u.end(), in main() local
[all …]
Deval_param.pass.cpp47 double mean = std::accumulate(u.begin(), u.end(), in main() local
54 double d = (u[i] - mean); in main()
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
89 double mean = std::accumulate(u.begin(), u.end(), in main() local
96 double d = (u[i] - mean); in main()
111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
131 double mean = std::accumulate(u.begin(), u.end(), in main() local
138 double d = (u[i] - mean); in main()
153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/
Deval.pass.cpp45 double mean = std::accumulate(u.begin(), u.end(), in main() local
52 double d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
85 double mean = std::accumulate(u.begin(), u.end(), in main() local
92 double d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
125 double mean = std::accumulate(u.begin(), u.end(), in main() local
132 double d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
165 double mean = std::accumulate(u.begin(), u.end(), in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/
Deval.pass.cpp46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
52 double d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
86 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
92 double d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
126 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
132 double d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp45 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local
52 D::result_type d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
85 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local
92 D::result_type d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
125 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local
132 D::result_type d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
165 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/
Deval_param.pass.cpp47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
53 double d = (u[i] - mean); in main()
68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
88 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
94 double d = (u[i] - mean); in main()
109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
129 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
135 double d = (u[i] - mean); in main()
150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval.pass.cpp46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
52 double d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
86 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
92 double d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
126 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
132 double d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.gamma/
Deval.pass.cpp46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
52 double d = (u[i] - mean); in main()
67 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
86 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
92 double d = (u[i] - mean); in main()
107 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
126 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
132 double d = (u[i] - mean); in main()
147 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval_param.pass.cpp47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
53 double d = (u[i] - mean); in main()
68 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
88 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
94 double d = (u[i] - mean); in main()
109 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
129 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
135 double d = (u[i] - mean); in main()
150 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/
Deval.pass.cpp40 double mean = std::accumulate(u.begin(), u.end(), in main() local
47 double d = (u[i] - mean); in main()
62 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
76 double mean = std::accumulate(u.begin(), u.end(), in main() local
83 double d = (u[i] - mean); in main()
98 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
Deval_param.pass.cpp42 double mean = std::accumulate(u.begin(), u.end(), in main() local
49 double d = (u[i] - mean); in main()
64 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
80 double mean = std::accumulate(u.begin(), u.end(), in main() local
87 double d = (u[i] - mean); in main()
102 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/
Deval.pass.cpp46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
52 double d = (u[i] - mean); in main()
69 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
88 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
94 double d = (u[i] - mean); in main()
111 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
130 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
136 double d = (u[i] - mean); in main()
153 assert(std::abs((mean - x_mean) / x_mean) < 0.01); in main()
172 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() local
[all …]

123