pdf1d¶
-
class
beast.fitting.pdf1d.
pdf1d
(gridvals, nbins, logspacing=False, minval=None, maxval=None)[source]¶ Bases:
object
Create an object which can be used to efficiently generate a 1D pdf for an observed object
Parameters: - gridvals: array-like
values of the quantity for all the grid points
- nbins: int
number of bins to use for the 1D pdf
- logspacing: bool
whether to use logarithmic spacing for the bins
- minval, maxval: float (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
(self, gindxs, weights)gen1d_full
(self, weights)Methods Documentation