mrpy.extra.reparameterise.ReparameteriseMRP¶
-
class
mrpy.extra.reparameterise.
ReparameteriseMRP
(p1=None, p2=None, p3=None, logHs=None, alpha=None, beta=None, **kwargs)¶ Base class for reparameterising the MRP.
Reparameterisations take the form of a transformation of parameters. Two transformations are required, one from the new parameters,
p1, p2, p3
to the standard ones,logHs, alpha, beta
, and also the inverse of this transform.Actual reparameterisations should be based on this class and provide explicit functions for these transformations in the methods
p_T()
andtheta_T()
. This class provides the identity transforms.The class may be initialised either with the new parameters or standard ones, which is useful for different applications.
Parameters: p1, p2, p3 : array_like, optional
Values of the transformed parameters. Either all of these or all of the standard params must be provided. If both are provided, these are used.
logHs, alpha, beta : array_like, optional
Values of the un-transformed parameters. Either all of these or all of the transformed params must be provided. If both are provided, the transformed params are used.
kwargs
All of the other parameters are passed directly to the super-class.
Methods
__init__
([p1, p2, p3, logHs, alpha, beta])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. p_T
(**kwargs)The new parameters as functions of theta rho_gtm
([log])The mass-weighted integral of the MRP, in reverse (ie. theta_T
(**kwargs)theta as functions of the new parameters p1,p2,p3