uniform_spherical_random_volume#
- astropy.coordinates.uniform_spherical_random_volume(size=1, max_radius=1)[源代码]#
生成球体内遵循均匀体积密度分布的点的随机采样。
- 参数:
- size :
int
Python :整型 要生成的点数。
- max_radius : number , astropy:quantity-like ,可选数字,星形:类似数量,可选
用于缩放随机距离的无量纲或单位因子。
- size :
- 返回:
- rep :
SphericalRepresentation
SphericalRepresentation
随机的点数。
- rep :