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 fail 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.

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

  • Thoroughly tested.

  • Python 2 and 3 compatible.

Installation

Either clone the repository and install locally:

$ git clone https://github.com/steven-murray/hankel.git
$ cd hankel/
$ pip install -U .

Or install from PyPI:

$ pip install hankel

The only dependencies are numpy, scipy and mpmath. These will be installed automatically if they are not already installed.

For instructions on testing hankel or any other development- or contribution-related issues, see CONTRIBUTING.rst.

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. DOI: 10.2977/prims/1145474602

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) DOI: 10.1086/496971

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.9.tar.gz (55.1 kB view details)

Uploaded Source

Built Distribution

hankel-0.3.9-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hankel-0.3.9.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for hankel-0.3.9.tar.gz
Algorithm Hash digest
SHA256 6c2c0ba5143efd6556e657349ca7927e0db3821a23e3458a3748f71c792de2a5
MD5 9ced4edba10f4666c8238f27ddaef5f9
BLAKE2b-256 6fbc3ee8e817b9efcadb5115171bda28ec8135c2f7c59760b11a6e9fa3492fd4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: hankel-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for hankel-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 834e8a62510ad833c3c5f21b351f9e8ba10b6b00180fb72020f6e51e59472926
MD5 21349139d198dd4603d82094a37e81bc
BLAKE2b-256 b55cf14b07fd24e61362e75d0b7d4beb4ec40cd3ea6d8a3b6a86e5daeae4c2c6

See more details on using hashes here.

Provenance

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