uniform_spherical_random_volume#

astropy.coordinates.uniform_spherical_random_volume(size=1, max_radius=1)[源代码]#

生成球体内遵循均匀体积密度分布的点的随机采样。

参数:
size : intPython :整型

要生成的点数。

max_radius : numberastropy:quantity-like ,可选数字,星形:类似数量,可选

用于缩放随机距离的无量纲或单位因子。

返回:
repSphericalRepresentationSphericalRepresentation

随机的点数。