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

Problem with analyer #164

Open
tariqyasin opened this issue Jun 6, 2020 · 2 comments
Open

Problem with analyer #164

tariqyasin opened this issue Jun 6, 2020 · 2 comments

Comments

@tariqyasin
Copy link

In line 136 of analyse.py should be something like

bi = lambda x: numpy.interp(x*b[-1,0], b[:,0], b[:,1], left=b[0,1], right=b[-1,1])

instead of

bi = lambda x: numpy.interp(x, b[:,0], b[:,1], left=b[0,1], right=b[-1,1])

@JohannesBuchner
Copy link
Owner

I guess the assumption is that the first column sums to 1 accurately. Are you having an issue? Can you create a simple test problem?

@JohannesBuchner
Copy link
Owner

b[:,0] = b[:,0].cumsum() / b[:,0].sum()

is another solution I guess

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