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

Gaussian and Exponential numerical codes are inverted for random source simulation #363

Open
ronanpaixao opened this issue Dec 21, 2023 · 0 comments

Comments

@ronanpaixao
Copy link

Lines 560 and 562 are inverted in HighLevelElement.py (reference).

According to the documentation itself in line 525, the code for a gaussian distribution is 2 and for exponential is 3, but they are inverted in code.

TL;DR:
Actual code using a gaussian random voltage source showed the bug, by generating only positive voltages, which is true for exponential distribution but false for gaussian distribution.

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