marginal_pdf_absMag#

agabpylib.simulation.parallaxsurveys.marginal_pdf_absMag(M, rmin, rmax, mu, sigma, mlim)#

Calculate the expected marginal distribution for the true absolute magnitude 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:
  • M (float array) – Values of M_true for which to calculate p(M_true).

  • 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 M_true

Return type:

float vector