File: genarray.c

package info (click to toggle)
cmix 2.0.11-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,224 kB
  • ctags: 5,925
  • sloc: cpp: 29,558; ansic: 11,452; yacc: 2,020; sh: 1,795; makefile: 1,228; lex: 484; perl: 278
file content (16 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "fft.h"
#include <math.h>

REAL orig_real[N], orig_imag[N];

/* ---------------------------------------------------------------------- */
/* Generate some silly test data, based on q                              */

void generate_data(int q) {
  int x; 
  for (x = 0; x < N; x++) {
    orig_real[x] = sin(x / q);
    orig_imag[x] = 0.0 / q;
  }
}