Skip to content

Commit dc6530a

Browse files
committed
Correct test script and data generator.
1 parent c6de214 commit dc6530a

File tree

2 files changed

+1027
-263
lines changed

2 files changed

+1027
-263
lines changed

gd.pl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/perl
2+
3+
use strict;
4+
5+
my $PI = 3.14159;
6+
my $L = 1000;
7+
8+
for (my $i=0; $i<$L ;$i++) {
9+
my $t = $i * 1.0/1000.0;
10+
my $x = 0.7 * sin(2.0 * $PI * 50.0 * $t) + sin(2.0 * $PI * 120.0 * $t);
11+
print "INSERT INTO fft_test VALUES ($t, $x);\n";
12+
}

0 commit comments

Comments
 (0)