From: hackbard Date: Thu, 7 Oct 2004 19:04:55 +0000 (+0000) Subject: print out max magnitude X-Git-Url: https://www.hackdaworld.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=dc8e4ecbb7c31b702518a819190facd40f346247;p=physik%2Fnlsop.git print out max magnitude --- diff --git a/dft.c b/dft.c index c4fe566..3ce41a4 100644 --- a/dft.c +++ b/dft.c @@ -72,6 +72,8 @@ int main(int argc,char **argv) { offy+=fourier.data_len[0]; } + printf("found max: %f\n",max); + if(max!=0) scale=(int)255/max; else scale=0;