Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for analytical czjzek distribution #327

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

deepanshs
Copy link
Owner

@deepanshs deepanshs commented Feb 27, 2024

Analytical expression for computing czjzek distribution

The syntax remains the same, but analytical model is preferred for distributions when available

czjzek = CzjzekDistribution(sigma=1.25,polar=True)

# default is analytics (~0.2 s)
x_dist1, y_dist1, amp1 = czjzek.pdf(pos=[x_range, y_range])

# to force numerical computation (~15.5 s)
x_dist0, y_dist0, amp0 = czjzek.pdf(pos=[x_range, y_range], analytical=False, size=10_000_000)

Comparison test

test_compare

@deepanshs deepanshs merged commit faba18b into master Feb 27, 2024
18 checks passed
@deepanshs deepanshs deleted the djs/czjzek_analytical branch February 27, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants