__init__.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. """
  2. =========================================================
  3. Legacy discrete Fourier transforms (:mod:`scipy.fftpack`)
  4. =========================================================
  5. .. legacy::
  6. New code should use :mod:`scipy.fft`.
  7. Fast Fourier Transforms (FFTs)
  8. ==============================
  9. .. autosummary::
  10. :toctree: generated/
  11. fft - Fast (discrete) Fourier Transform (FFT)
  12. ifft - Inverse FFT
  13. fft2 - 2-D FFT
  14. ifft2 - 2-D inverse FFT
  15. fftn - N-D FFT
  16. ifftn - N-D inverse FFT
  17. rfft - FFT of strictly real-valued sequence
  18. irfft - Inverse of rfft
  19. dct - Discrete cosine transform
  20. idct - Inverse discrete cosine transform
  21. dctn - N-D Discrete cosine transform
  22. idctn - N-D Inverse discrete cosine transform
  23. dst - Discrete sine transform
  24. idst - Inverse discrete sine transform
  25. dstn - N-D Discrete sine transform
  26. idstn - N-D Inverse discrete sine transform
  27. Differential and pseudo-differential operators
  28. ==============================================
  29. .. autosummary::
  30. :toctree: generated/
  31. diff - Differentiation and integration of periodic sequences
  32. tilbert - Tilbert transform: cs_diff(x,h,h)
  33. itilbert - Inverse Tilbert transform: sc_diff(x,h,h)
  34. hilbert - Hilbert transform: cs_diff(x,inf,inf)
  35. ihilbert - Inverse Hilbert transform: sc_diff(x,inf,inf)
  36. cs_diff - cosh/sinh pseudo-derivative of periodic sequences
  37. sc_diff - sinh/cosh pseudo-derivative of periodic sequences
  38. ss_diff - sinh/sinh pseudo-derivative of periodic sequences
  39. cc_diff - cosh/cosh pseudo-derivative of periodic sequences
  40. shift - Shift periodic sequences
  41. Helper functions
  42. ================
  43. .. autosummary::
  44. :toctree: generated/
  45. fftshift - Shift the zero-frequency component to the center of the spectrum
  46. ifftshift - The inverse of `fftshift`
  47. fftfreq - Return the Discrete Fourier Transform sample frequencies
  48. rfftfreq - DFT sample frequencies (for usage with rfft, irfft)
  49. next_fast_len - Find the optimal length to zero-pad an FFT for speed
  50. Note that ``fftshift``, ``ifftshift`` and ``fftfreq`` are numpy functions
  51. exposed by ``fftpack``; importing them from ``numpy`` should be preferred.
  52. Convolutions (:mod:`scipy.fftpack.convolve`)
  53. ============================================
  54. .. module:: scipy.fftpack.convolve
  55. .. autosummary::
  56. :toctree: generated/
  57. convolve
  58. convolve_z
  59. init_convolution_kernel
  60. destroy_convolve_cache
  61. """
  62. __all__ = ['fft','ifft','fftn','ifftn','rfft','irfft',
  63. 'fft2','ifft2',
  64. 'diff',
  65. 'tilbert','itilbert','hilbert','ihilbert',
  66. 'sc_diff','cs_diff','cc_diff','ss_diff',
  67. 'shift',
  68. 'fftfreq', 'rfftfreq',
  69. 'fftshift', 'ifftshift',
  70. 'next_fast_len',
  71. 'dct', 'idct', 'dst', 'idst', 'dctn', 'idctn', 'dstn', 'idstn'
  72. ]
  73. from ._basic import *
  74. from ._pseudo_diffs import *
  75. from ._helper import *
  76. from ._realtransforms import *
  77. # Deprecated namespaces, to be removed in v2.0.0
  78. from . import basic, helper, pseudo_diffs, realtransforms
  79. from scipy._lib._testutils import PytestTester
  80. test = PytestTester(__name__)
  81. del PytestTester