@@ -117,7 +117,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
117
117
void general_checks (const te::dataframe& input, const te::table_id& input_table_id) {
118
118
const table data = input.get_table (this ->get_policy (), input_table_id);
119
119
120
- INFO (" create descriptor cov cor means" );
120
+ INFO (" create descriptor cov cor means" )
121
121
auto cov_desc =
122
122
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
123
123
covariance::result_options::cov_matrix | covariance::result_options::cor_matrix |
@@ -126,55 +126,55 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
126
126
auto compute_result = this ->compute (cov_desc, data);
127
127
check_compute_result (cov_desc, data, compute_result);
128
128
129
- INFO (" create descriptor cov" );
129
+ INFO (" create descriptor cov" )
130
130
cov_desc =
131
131
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
132
132
covariance::result_options::cov_matrix);
133
133
INFO (" run compute optional: cov" );
134
134
compute_result = this ->compute (cov_desc, data);
135
135
check_compute_result (cov_desc, data, compute_result);
136
136
137
- INFO (" create descriptor cov biased" );
137
+ INFO (" create descriptor cov biased" )
138
138
cov_desc = covariance::descriptor<Float, Method, covariance::task::compute>()
139
139
.set_result_options (covariance::result_options::cov_matrix)
140
140
.set_bias (true );
141
141
INFO (" run compute optional: cov biased" );
142
142
compute_result = this ->compute (cov_desc, data);
143
143
check_compute_result (cov_desc, data, compute_result);
144
144
145
- INFO (" create descriptor cor" );
145
+ INFO (" create descriptor cor" )
146
146
cov_desc =
147
147
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
148
148
covariance::result_options::cor_matrix);
149
149
INFO (" run compute optional: cor" );
150
150
compute_result = this ->compute (cov_desc, data);
151
151
check_compute_result (cov_desc, data, compute_result);
152
152
153
- INFO (" create descriptor means" );
153
+ INFO (" create descriptor means" )
154
154
cov_desc =
155
155
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
156
156
covariance::result_options::means);
157
157
INFO (" run compute optional: means" );
158
158
compute_result = this ->compute (cov_desc, data);
159
159
check_compute_result (cov_desc, data, compute_result);
160
160
161
- INFO (" create descriptor cov cor" );
161
+ INFO (" create descriptor cov cor" )
162
162
cov_desc =
163
163
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
164
164
covariance::result_options::cov_matrix | covariance::result_options::cor_matrix);
165
165
INFO (" run compute optional: cov cor" );
166
166
compute_result = this ->compute (cov_desc, data);
167
167
check_compute_result (cov_desc, data, compute_result);
168
168
169
- INFO (" create descriptor cov means" );
169
+ INFO (" create descriptor cov means" )
170
170
cov_desc =
171
171
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
172
172
covariance::result_options::cov_matrix | covariance::result_options::means);
173
173
INFO (" run compute optional: cov means" );
174
174
compute_result = this ->compute (cov_desc, data);
175
175
check_compute_result (cov_desc, data, compute_result);
176
176
177
- INFO (" create descriptor cor means" );
177
+ INFO (" create descriptor cor means" )
178
178
cov_desc =
179
179
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
180
180
covariance::result_options::cor_matrix | covariance::result_options::means);
@@ -187,7 +187,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
187
187
const te::table_id& input_table_id,
188
188
const std::int64_t nBlocks) {
189
189
const table data = input.get_table (this ->get_policy (), input_table_id);
190
- INFO (" create descriptor cov cor means" );
190
+ INFO (" create descriptor cov cor means" )
191
191
auto cov_desc =
192
192
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
193
193
covariance::result_options::cov_matrix | covariance::result_options::cor_matrix |
@@ -201,7 +201,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
201
201
auto compute_result = this ->finalize_compute (cov_desc, partial_result);
202
202
check_compute_result (cov_desc, data, compute_result);
203
203
204
- INFO (" create descriptor cov" );
204
+ INFO (" create descriptor cov" )
205
205
cov_desc =
206
206
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
207
207
covariance::result_options::cov_matrix);
@@ -214,7 +214,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
214
214
compute_result = this ->finalize_compute (cov_desc, partial_result);
215
215
check_compute_result (cov_desc, data, compute_result);
216
216
217
- INFO (" create descriptor cor" );
217
+ INFO (" create descriptor cor" )
218
218
cov_desc =
219
219
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
220
220
covariance::result_options::cor_matrix);
@@ -227,7 +227,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
227
227
compute_result = this ->finalize_compute (cov_desc, partial_result);
228
228
check_compute_result (cov_desc, data, compute_result);
229
229
230
- INFO (" create descriptor means" );
230
+ INFO (" create descriptor means" )
231
231
cov_desc =
232
232
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
233
233
covariance::result_options::means);
@@ -240,7 +240,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
240
240
compute_result = this ->finalize_compute (cov_desc, partial_result);
241
241
check_compute_result (cov_desc, data, compute_result);
242
242
243
- INFO (" create descriptor cov cor" );
243
+ INFO (" create descriptor cov cor" )
244
244
cov_desc =
245
245
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
246
246
covariance::result_options::cov_matrix | covariance::result_options::cor_matrix);
@@ -253,7 +253,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
253
253
compute_result = this ->finalize_compute (cov_desc, partial_result);
254
254
check_compute_result (cov_desc, data, compute_result);
255
255
256
- INFO (" create descriptor cov means" );
256
+ INFO (" create descriptor cov means" )
257
257
cov_desc =
258
258
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
259
259
covariance::result_options::cov_matrix | covariance::result_options::means);
@@ -266,7 +266,7 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
266
266
compute_result = this ->finalize_compute (cov_desc, partial_result);
267
267
check_compute_result (cov_desc, data, compute_result);
268
268
269
- INFO (" create descriptor cor means" );
269
+ INFO (" create descriptor cor means" )
270
270
cov_desc =
271
271
covariance::descriptor<Float, Method, covariance::task::compute>().set_result_options (
272
272
covariance::result_options::cor_matrix | covariance::result_options::means);
@@ -285,32 +285,32 @@ class covariance_test : public te::crtp_algo_fixture<TestType, Derived> {
285
285
const covariance::compute_result<>& result) {
286
286
if (result.get_result_options ().test (result_options::cov_matrix)) {
287
287
const auto cov_matrix = result.get_cov_matrix ();
288
- INFO (" check if cov matrix table shape is expected" );
288
+ INFO (" check if cov matrix table shape is expected" )
289
289
REQUIRE (cov_matrix.get_row_count () == data.get_column_count ());
290
290
REQUIRE (cov_matrix.get_column_count () == data.get_column_count ());
291
- INFO (" check if there is no NaN in cov matrix table" );
291
+ INFO (" check if there is no NaN in cov matrix table" )
292
292
REQUIRE (te::has_no_nans (cov_matrix));
293
- INFO (" check if cov matrix values are expected" );
293
+ INFO (" check if cov matrix values are expected" )
294
294
check_cov_matrix_values (desc, data, cov_matrix);
295
295
}
296
296
if (result.get_result_options ().test (result_options::cor_matrix)) {
297
297
const auto cor_matrix = result.get_cor_matrix ();
298
- INFO (" check if cor matrix table shape is expected" );
298
+ INFO (" check if cor matrix table shape is expected" )
299
299
REQUIRE (cor_matrix.get_row_count () == data.get_column_count ());
300
300
REQUIRE (cor_matrix.get_column_count () == data.get_column_count ());
301
- INFO (" check if there is no NaN in cor matrix table" );
301
+ INFO (" check if there is no NaN in cor matrix table" )
302
302
REQUIRE (te::has_no_nans (cor_matrix));
303
- INFO (" check if cor matrix values are expected" );
303
+ INFO (" check if cor matrix values are expected" )
304
304
check_cor_matrix_values (desc, data, cor_matrix);
305
305
}
306
306
if (result.get_result_options ().test (result_options::means)) {
307
307
const auto means = result.get_means ();
308
- INFO (" check if means table shape is expected" );
308
+ INFO (" check if means table shape is expected" )
309
309
REQUIRE (means.get_row_count () == 1 );
310
310
REQUIRE (means.get_column_count () == data.get_column_count ());
311
- INFO (" check if there is no NaN in means table" );
311
+ INFO (" check if there is no NaN in means table" )
312
312
REQUIRE (te::has_no_nans (means));
313
- INFO (" check if means values are expected" );
313
+ INFO (" check if means values are expected" )
314
314
check_means_values (desc, data, means);
315
315
}
316
316
}
0 commit comments