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 erf #1

Open
Neiou8 opened this issue Apr 27, 2022 · 2 comments
Open

About erf #1

Neiou8 opened this issue Apr 27, 2022 · 2 comments

Comments

@Neiou8
Copy link

Neiou8 commented Apr 27, 2022

Hi Nicola, excellent work and thanks for making the codes open! I was wondering to know what is the meaning of erf in the gen_PVScenarios.m and what effect does it have.

Yks = zeros(size(Xks));
for i=1:size(Xks, 1)
    for j=1:size(Xks, 2)
        Yks(i,j) = 0.5 * ( 1 + erf( Xks(i,j))/sqrt(2)  );
    end
end

Thank you in advance!

@nicomignoni
Copy link
Owner

It's a random sequence that is used for computing the inverse of the Beta function later in the code.
It has been taken from this paper:
N. Vespermann, T. Hamacher and J. Kazempour, "Access Economy for Storage in Energy Communities," in IEEE Transactions on Power Systems, https://doi.org/10.1109/TPWRS.2020.3033999.

@Neiou8
Copy link
Author

Neiou8 commented Apr 28, 2022

Thank you. Does this code refer to the inverse probit function in this paper?I found that after running this part of the code can convert Xks with negative numbers into Yks with all positive numbers. I'm just a little didn't understand the meaning of this part.

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

2 participants