gcfit.probabilities.likelihood_pm_T#
- gcfit.probabilities.likelihood_pm_T(model, pm, *, mass_bin=None, hyperparams=False)#
Compute the loglikelihood of the cluster tangential proper motion.
Computes the log likelihood component of a cluster’s proper motion dispersion profile for the tangential proper motion, in relation to the cluster centre, assuming a gaussian likelihood.
- Parameters:
- modelgcfit.FittableModel
Cluster model used to compute probability distribution.
- pmgcfit.core.data.Dataset
Proper motion dispersions profile dataset used to compute probability distribution and evaluate log likelihood.
- mass_binint, optional
Index of model.mj mass bin to use in all calculations. If None (default), attempts to read ‘m’ from pulsars.mdata, else uses largest of the main sequence bins, given by model.nms.
- hyperparamsbool, optional
Whether to include bayesian hyperparameters.
- Returns:
- float
Log likelihood value.