mrpy.extra.likelihoods.SampleLikeWeights¶
-
class
mrpy.extra.likelihoods.
SampleLikeWeights
(weights, *args, **kwargs)¶ Compactified version of
MRP_PO_Likelihood
useful for simulated haloes.Effectively, this is the same as
MRP_PO_Likelihood
, but instead of passing a full array of halo masses, one can pass an array of unique masses, and a weights array which specifies the number of each mass in the sample.This should be useful for simulation-like data, which has many halos of the same mass.
Parameters: - weights : array_like
Array of the same length as
m
, giving the number of each mass in the distribution.
Other Parameters: - args, kwargs :
Other parameters are necessary, to be passed through to
MRP_PO_Likelihood
.
Methods
__init__
(weights, *args, **kwargs)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.