# publicscipy/scipy

### Subversion checkout URL

You can clone with HTTPS or Subversion.

# DOC: add parameters, returns, examples to rfftfreq(), and format variables. #321

Closed
wants to merge 3 commits into from
+28 4

### 2 participants

Also STY: spaces around operators

 endolith DOC: add parameters, returns, examples, and format variables. STY: sp… …aces around operators 7025b42

commented on the diff
scipy/fftpack/helper.py
 ((8 lines not shown)) 12 12 13 13 f = [0,1,1,2,2,...,n/2-1,n/2-1,n/2]/(d*n) if n is even 14 14 f = [0,1,1,2,2,...,n/2-1,n/2-1,n/2,n/2]/(d*n) if n is odd 15 + 16 + Parameters 17 + ---------- 18 + n : int 19 + Window length. 20 + d : scalar
scipy/fftpack/helper.py
 ((12 lines not shown)) 16 + Parameters 17 + ---------- 18 + n : int 19 + Window length. 20 + d : scalar 21 + Sample spacing. 22 + 23 + Returns 24 + ------- 25 + out : ndarray 26 + The array of length `n`, containing the sample frequencies. 27 + 28 + Examples 29 + -------- 30 + >>> sig = np.array([-2, 8, 6, 4, 1, 0, 3, 5], dtype=float) 31 + >>> fourier = scipy.fftpack.rfft(sig)
scipy/fftpack/helper.py
 ((15 lines not shown)) 19 + Window length. 20 + d : scalar 21 + Sample spacing. 22 + 23 + Returns 24 + ------- 25 + out : ndarray 26 + The array of length `n`, containing the sample frequencies. 27 + 28 + Examples 29 + -------- 30 + >>> sig = np.array([-2, 8, 6, 4, 1, 0, 3, 5], dtype=float) 31 + >>> fourier = scipy.fftpack.rfft(sig) 32 + >>> n = fourier.size 33 + >>> timestep = 0.1 34 + >>> freq = scipy.fftpack.rfftfreq(n, d=timestep)
 endolith DOC: add note about default, fix example namespaces 318535a endolith Use arange() instead of array(range()) ce58cf5
Owner

Merged in 217067d, thanks @endolith

deleted the branch
referenced this pull request from a commit
 Commit has since been removed from the repository and is no longer available.