Subversion Repositories svnkaklik

Rev

Rev 477 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 477 Rev 481
Line 436... Line 436...
436
   //
436
   //
437
 
437
 
438
   c->powspec[ 0] = 0.0;  // Zero the DC component
438
   c->powspec[ 0] = 0.0;  // Zero the DC component
439
   for( i=1; i<BINS; i++)
439
   for( i=1; i<BINS; i++)
440
   {
440
   {
441
      double t1 = c->fft_data[ i][0];  
441
      double t1 = c->fft_data[i,0];  
442
      double t2 = c->fft_data[ i][1]; 
442
      double t2 = c->fft_data[i,1]; 
443
      c->powspec[ i] = t1*t1 + t2*t2;
443
      c->powspec[ i] = t1*t1 + t2*t2;
444
   }
444
   }
445
 
445
 
446
   //
446
   //
447
   //  Accumulate average signal levels in each bin.  signal_avg is used
447
   //  Accumulate average signal levels in each bin.  signal_avg is used