Giter VIP home page Giter VIP logo

Comments (1)

guilgautier avatar guilgautier commented on June 28, 2024

The modes "Y" and "T" corresponds to different valid transformation matrices H involved in the computation of the Hankel transform as presented by Baddour and Chouinard https://doi.org/10.1364/JOSAA.32.000611

if mode == "Y":
H = bessel1(n, np.outer(jk / jN, jk)) / np.square(bessel1(n + 1, jk))
H *= 2 / jN
ht_k = H.dot(function(r))
ht_k *= r_max ** 2 / jN
return k, ht_k
elif mode == "T":
H = bessel1(n, np.outer(jk / jN, jk))
Jn1 = bessel1(n + 1, jk)
H /= np.outer(Jn1, Jn1)
H *= 2 / jN
ht_k = H.dot(function(r) / Jn1)
ht_k *= r_max ** 2 / jN
return k, ht_k

from structure-factor.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.