mrpy.base.core.MRP¶
-
class
mrpy.base.core.MRP(logm, logHs, alpha, beta, norm='pdf', log_mmin=None, rhom=83265000000.0)¶ An MRP object.
This class contains methods for calculating typical quantities of interest: the differential/cumulative number densities, as well as mass densities, and several types of normalisation. Also included is a pointer to underlying statistical quantities, such as mean, median, mode etc.
Parameters: logm : array_like
Vector of log10 masses.
logHs, alpha, beta : array_like
The shape parameters of the MRP.
norm : float or string
Gives the normalisation of the MRP, lnA. If set to a float, it is directly the (log) normalisation. If set to
"pdf", it will automatically render the MRP as a statistical distribution. If set to"rhom", it will yield the correct total mass density across all masses, down toM=0.log_mmin : array_like, optional
Log-10 truncation mass of the MRP. By default is set to the minimum mass in
logm.rhom : float, optional
Mass density of the Universe. Only required if norm is set to
Arhom.Methods
__init__(logm, logHs, alpha, beta[, norm, …])dndlog10m([log])Return the MRP in log10 space at `m’. dndm([log])Return the MRP at m. ngtm([log])The number density greater than mmin. rho_gtm([log])The mass-weighted integral of the MRP, in reverse (ie.