pdf1d¶
-
class
beast.fitting.pdf1d.pdf1d(gridvals, nbins, logspacing=False, minval=None, maxval=None)[source]¶ Bases:
objectCreate an object which can be used to efficiently generate a 1D pdf for an observed object
- Parameters
- gridvalsndarray
1D
floatarray with the values of the quantity for all the grid points- nbinsint
number of bins to use for the 1D pdf
- logspacingbool, optional
whether to use logarithmic spacing for the bins
- minval, maxvalfloat, optional
override the range for the bins. this can be useful to make sure that the pdfs for different runs have the same bins
Methods Summary
gen1d(gindxs, weights)Compute the 1D posterior PDFs based on the nD probabilities
Methods Documentation