Probabilities#

Likelihood Functions#

posterior

Compute the full posterior probability given theta and observations.

likelihood_LOS

Compute the loglikelihood of the cluster LOS velocity dispersion.

likelihood_pm_tot

Compute the loglikelihood of the cluster total proper motion dispersion.

likelihood_pm_ratio

Compute the loglikelihood of the cluster proper motion dispersion ratio.

likelihood_pm_T

Compute the loglikelihood of the cluster tangential proper motion.

likelihood_pm_R

Compute the loglikelihood of the cluster radial proper motion.

likelihood_number_density

Compute the loglikelihood of the cluster number density profile.

likelihood_mass_func

Compute the loglikelihood of the cluster's PDMF.

likelihood_pulsar_spin

Compute the loglikelihood of pulsar spin period derivatives.

likelihood_pulsar_orbital

Compute the loglikelihood of binary pulsar orbital period derivatives.

Prior Likelihood Functions#

priors.Priors

Representation of the prior likelihood functions on various parameters.

priors.UniformPrior

Flat uniform prior function.

priors.GaussianPrior

1D Gaussian normal prior function.

Pulsar Likelihood Utilities#

pulsars.cluster_component

Compute the "cluster" component over LOS accelerations at a radius R.

pulsars.galactic_component

Compute the "galactic" component of pulsar Pdot-P, using the MilkyWayPotential2022 potential from gala.

pulsars.shklovskii_component

Compute the "Shklovskii" (proper motion) component of pulsar Pdot-P.

pulsars.field_Pdot_KDE

Return a gaussian kde representing the galactic field pulsar P-Pdot.