Skip to main content

Hankel Transformations using method of Ogata 2005

Project description

https://travis-ci.org/steven-murray/hankel.svg?branch=master https://coveralls.io/repos/github/steven-murray/hankel/badge.svg?branch=master https://zenodo.org/badge/19090866.svg https://img.shields.io/pypi/v/hankel.svg https://img.shields.io/badge/code%20style-black-000000.svg

Perform simple and accurate Hankel transformations using the method of Ogata 2005.

Hankel transforms and integrals are commonplace in any area in which Fourier Transforms are required over fields that are radially symmetric (see Wikipedia for a thorough description). They involve integrating an arbitrary function multiplied by a Bessel function of arbitrary order (of the first kind). Typical integration schemes often fall over because of the highly oscillatory nature of the transform. Ogata’s quadrature method used in this package provides a fast and accurate way of performing the integration based on locating the zeros of the Bessel function.

Installation

Either clone the repository at github.com/steven-murray/hankel and use python setup.py install, or simply install using pip install hankel.

The only dependencies are numpy, scipy and mpmath (as of v0.2.0).

Features

  • Accurate and fast solutions to many Hankel integrals

  • Easy to use and re-use

  • Arbitrary order transforms

  • Built-in support for radially symmetric Fourier Transforms

References

Based on the algorithm provided in

H. Ogata, A Numerical Integration Formula Based on the Bessel Functions, Publications of the Research Institute for Mathematical Sciences, vol. 41, no. 4, pp. 949-970, 2005.

Also draws inspiration from

Fast Edge-corrected Measurement of the Two-Point Correlation Function and the Power Spectrum Szapudi, Istvan; Pan, Jun; Prunet, Simon; Budavari, Tamas (2005) The Astrophysical Journal vol. 631 (1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hankel-0.3.7.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

hankel-0.3.7-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file hankel-0.3.7.tar.gz.

File metadata

  • Download URL: hankel-0.3.7.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for hankel-0.3.7.tar.gz
Algorithm Hash digest
SHA256 5f026ab8d72dfc4280cd65f648a2c724d90193ddf2390bf8da763525e6cfdc6e
MD5 5fa5de8e251430854d1fdc4055055fe4
BLAKE2b-256 8b8f029d46fe7aea217d261c7a7b074293438a2f09646e7fe1cba5a5e5e75e20

See more details on using hashes here.

File details

Details for the file hankel-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: hankel-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for hankel-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 154ff2af5ca840c2b214b3da809a745bfb0ad72627fdfdbeed683a950f2c1e88
MD5 982c4e59c6f92ca78287cbdb8ff98001
BLAKE2b-256 61cd619994f52f8922da7eae58265471eaa776997c9fbac458df845c83662113

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page