#include "arm_math.h"
#include "math_helper.h"
#if defined(SEMIHOSTING)
#include <stdio.h>
#endif
#define SNR_THRESHOLD 77
{
782.0, 7577.0, 470.0, 4505.0
};
{
1.0, 32.0, 4.0, 128.0,
1.0, 32.0, 64.0, 2048.0,
1.0, 16.0, 4.0, 64.0,
1.0, 16.0, 64.0, 1024.0,
};
const float32_t xRef_f32[4] = {73.0, 8.0, 21.25, 2.875};
int32_t main(void)
{
uint32_t srcRows, srcColumns;
srcRows = 4;
srcColumns = 4;
srcRows = 4;
srcColumns = 4;
srcRows = 4;
srcColumns = 4;
srcRows = 4;
srcColumns = 4;
srcRows = 4;
srcColumns = 1;
srcRows = 4;
srcColumns = 1;
snr = arm_snr_f32((
float32_t *)xRef_f32, X_f32, 4);
{
#if defined (SEMIHOSTING)
printf("FAILURE\n");
#else
while (1);
#endif
}
else
{
#if defined (SEMIHOSTING)
printf("SUCCESS\n");
#else
while (1);
#endif
}
}