simDistancesConstantSpaceDensity#
- agabpylib.simulation.parallaxsurveys.simDistancesConstantSpaceDensity(numStars, minDistance, maxDistance, rangen)#
Simulate distances for stars distributed uniformly in space around the Sun.
- Parameters:
int (numStars) – Number of stars to simulate
minDistance (float) – Lower limit on the distance (pc, closest possible star)
maxDistance (float) – Upper limit on the distance (pc, volume limit of survey)
rangen (numpy.random.Generator) – Random number generator.
- Returns:
distances – Vector of distance values
- Return type:
float array