UniformSpaceDistributionSingleLuminosity#
- class agabpylib.simulation.parallaxsurveys.UniformSpaceDistributionSingleLuminosity(numberOfStars, minDistance, maxDistance, meanAbsoluteMagnitude, stddevAbsoluteMagnitude, surveyLimit=inf)#
Bases:
ParallaxSurvey
Base class for simulated parallax surveys in which the stars are distributed uniformly in space between a minimum and maximum distance and with all stars having an absolute magnitude draw from the same Normal distribution.
- meanAbsoluteMagnitude#
Mean of Gaussian absolute magnitude distribution
- Type:
float
- stddevAbsoluteMagnitude#
Standard deviation of Gaussian absolute magnitude distribution
- Type:
float
Methods Summary
Calculate the natural logarithm of the analytical probability density function of the apparent magnitudes in the simulated survey.
Generate the simulated observations.
Methods Documentation
- apparentMagnitude_lpdf(m)#
Calculate the natural logarithm of the analytical probability density function of the apparent magnitudes in the simulated survey. This can be derived from the know parallax and absolute magnitude PDFs.
- Parameters:
m (float or float array) – The apparent magnitude(s) for which to calculate the PDF.
- Returns:
logPdf – The value(s) of ln(PDF).
- Return type:
float or float array
- generateObservations()#
Generate the simulated observations.