home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / dsp / 2835 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.9 KB  |  53 lines

  1. Newsgroups: comp.dsp
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!ja51359
  3. From: ja51359@uxa.cso.uiuc.edu (axelrod)
  4. Subject: Re: windows for FFT
  5. References: <nyarko.724736588@ee.ualberta.ca>
  6. Message-ID: <BzIuKq.AAC@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Sat, 19 Dec 1992 19:38:49 GMT
  10. Lines: 41
  11.  
  12. nyarko@ee.ualberta.ca (David Nyarko) writes:
  13.  
  14. >Hi,
  15. >In some texts I find windows defined with an "N-1"
  16. >denominator and in others an " N " and would like fellow netters
  17. >to clarify this apparent discrepancy. For example if a waveform
  18. >whose period is (N * Ts) when synchronously sampled, has it's
  19. >frequency slightly reduced so that a period would now
  20. >have a duration of [(N + d) * Ts], which of the following
  21. >would be appropriate , the hanning  in a) or that in b).
  22. >Ts = sampling period
  23. >N is a  positive integer
  24. >d=(0,1)
  25.  
  26. >eg
  27. >a) In article ;"On the use of windows for the
  28. >Harmonic Analysis with the discrete Fourier Transform"
  29. >by Harris,
  30.  
  31. >the hanning window is defined as
  32. >w(n) = 0.5*[1 - cos(2*n*pi/N)]  n=0,1,2,...N-1
  33.  
  34. >b) On pg. 94 of "Introduction to Applied Statistical signal
  35. >analysis " by Richard Shiavi the hanning window is defined as:
  36.  
  37. >dt(n) = 0.5*[1 - cos(2*pi*n/(N-1))]   0 <= n <= N-1
  38.  
  39. >A few other references have either a) or b). This pattern is
  40. >repeated for other windows too.
  41. >When does one use a) or b).
  42.  
  43. >            David
  44.  
  45. 2*n*pi/N will give you values of the window evaluated from 0 to 2pi-2pi/N,
  46. and 2*n*pi/(N-1) will give you values of the window evaluated from 0 to 2pi.
  47. These are assuming you are using n from 0 to N-1, thereby having N samples.
  48. I don't know why you'd want to include the last 2pi value, since it's the 
  49. same as the zero value and would create problems in certain cases.  I just
  50. finished my DSP exam and am glad!!!!!!!!!!!!!!!!!!!!!!!!!
  51. :)
  52.  
  53.