skypy.utils.random.triaxial_axis_ratio

skypy.utils.random.triaxial_axis_ratio(zeta, xi, size=None)[source] [edit on github]

axis ratio of a randomly projected triaxial ellipsoid

Given the two axis ratios 1 >= zeta >= xi of a randomly oriented triaxial ellipsoid, computes the axis ratio q of the projection.

Parameters
zetaarray_like

Axis ratio of intermediate and major axis.

xiarray_like

Axis ratio of minor and major axis.

sizetuple of int or None

Size of the random draw. If None is given, size is inferred from other inputs.

Returns
qarray_like

Axis ratio of the randomly projected ellipsoid.

Notes

See equations (11) and (12) in [1] for details.

References

1

Binney J., 1985, MNRAS, 212, 767. doi:10.1093/mnras/212.4.767