From: hackbard Date: Sat, 16 Oct 2004 08:52:07 +0000 (+0000) Subject: changed frequency axes X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e255e57617d57fef9960f1a572b7d707ea21139d;p=physik%2Fnlsop.git changed frequency axes --- diff --git a/dft.c b/dft.c index 3ce41a4..4bbbb46 100644 --- a/dft.c +++ b/dft.c @@ -15,6 +15,7 @@ int main(int argc,char **argv) { int x,y; int offy,offt; int scale; + int help; double max; double *mag; @@ -62,14 +63,13 @@ int main(int argc,char **argv) { // copy back the data, intensity = sqrt(r^2+i^2) max=0; - offy=0; + offt=0; for(y=0;ymax) max=mag[offt]; + offt+=1; } - offy+=fourier.data_len[0]; } printf("found max: %f\n",max); @@ -79,10 +79,17 @@ int main(int argc,char **argv) { if(scale!=0) { printf("scaling image intensity: %d\n",scale); - for(x=0;x