/* genphdata.c Generates test phase data for vqtrainph testing. */ #include #include #include #include #include #include #include "../src/defines.h" typedef struct { float real; float imag; } COMP; #define NVEC 100000 #define D 2 #define E 8 int main(void) { FILE *f=fopen("testph.flt", "wb"); int i, m, L, index; float angle, noisey_angle, pitch, Wo; COMP c; COMP sparse_pe[MAX_AMP]; #ifdef TEST1 for(i=0; i