__init__.py 3.1 KB

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