Fixed vector test failure criteria for conversions

master
Xavier Arteaga 6 years ago committed by Ismael Gomez
parent 327002a6cb
commit 8d56b254f5

@ -449,7 +449,10 @@ TEST(srslte_vec_convert_fi,
for (int i = 0; i < block_size; i++) {
gold = (short) ((x[i] * scale));
mse += cabsf((float)gold - (float) z[i]);
double err = cabsf((float)gold - (float) z[i]);
if (err > mse) {
mse = err;
}
}
free(x);
@ -471,7 +474,10 @@ TEST(srslte_vec_convert_if,
for (int i = 0; i < block_size; i++) {
gold = ((float)x[i]) * k;
mse += fabsf(gold - z[i]);
double err = cabsf((float)gold - (float) z[i]);
if (err > mse) {
mse = err;
}
}
free(x);

Loading…
Cancel
Save