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

About the Error related to the PCE of Gamma distribution! #2

Open
Tiger-Milestone opened this issue Sep 11, 2022 · 0 comments
Open

Comments

@Tiger-Milestone
Copy link

Mrs Zhang:
you show me a very good example of the PCE examples.
In example 2: 'Gamma distribution and Laguerre Chaos', you have done a good job for definite the Laguerre(i,a)
But "The error plots when are correct, I am using Laguerre package in python since . But when , the error plots are so strange, I am using the Laguerre functions I defined by myself"

I think the error may be introduced when you try to use MontCarlo to calculate inner3_la(alpha,P,i,j,l).
it can be solved by two methods:
Firstly, you can correct the method for calculate the integration. for example scipy.integrate.quad(f,0,np.inf)
Secondly, you can use the scipy.special.genlaguerre to create the Laguerre for alpha=1

Best regards!

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

No branches or pull requests

1 participant