cogwheel.gw_prior.twosquircle.TwoSquircularMapping¶
- class cogwheel.gw_prior.twosquircle.TwoSquircularMapping¶
Bases:
object2-squircular mapping between a disk and a square.
The disk is (u, v): u^2 + v^2 <= 1. The square, (x, y): -1 <= x,y <= 1.
Reference: https://arxiv.org/pdf/1709.07875.pdf
Methods
Return (x, y) on the square.
Return |∂(u,v) / ∂(x,y)|.
Return (u, v) on the disk.
- static disk_to_square(u, v)¶
Return (x, y) on the square.
- static jacobian_determinant(x, y)¶
Return |∂(u,v) / ∂(x,y)|.
∝ Prior on the square (x, y) that yields uniform on the disk (u, v).
- static square_to_disk(x, y)¶
Return (u, v) on the disk.