gcfit.probabilities.likelihood_LOS#
- gcfit.probabilities.likelihood_LOS(model, vlos, *, mass_bin=None, hyperparams=False)#
Compute the loglikelihood of the cluster LOS velocity dispersion.
Computes the log likelihood component of a cluster’s velocity dispersion profile for the line-of-sight velocities, assuming a gaussian likelihood.
- Parameters:
- modelgcfit.FittableModel
Cluster model used to compute probability distribution.
- vlosgcfit.core.data.Dataset
Velocity 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.