marginal_pdf_distance#

agabpylib.simulation.parallaxsurveys.marginal_pdf_distance(r, rmin, rmax, mu, sigma, mlim)#

Calculate the expected marginal distribution of distances given the parallax survey parameters. The calculation is only approximate as a the magnitude limit is applied to the error-free true apparent magnitude.

Parameters:
  • r (float array) – Values of r for which to calculate p(r).

  • rmin (float) – Minimum distance in survey.

  • rmax (float) – Maximum distance in survey.

  • mu (float) – Mean of the true absolute magnitude distribution.

  • sigma (float) – Standard deviation of the true absolute magnitude distribution.

  • mlim (float) – Apparent magnitude limit of the survey.

Returns:

pdf – The PDF as a function of r

Return type:

float array