PyMultiNest icon indicating copy to clipboard operation
PyMultiNest copied to clipboard

Problem with analyer

Open tariqyasin opened this issue 4 years ago • 2 comments

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])

tariqyasin avatar Jun 06 '20 22:06 tariqyasin

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 avatar Jun 06 '20 22:06 JohannesBuchner

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

is another solution I guess

JohannesBuchner avatar Jun 06 '20 22:06 JohannesBuchner