healpix_geometry_analysis.problems.numpyro_sampler

Classes

NumpyroSamplerProblem

Description of the problem for numpyro sampler

Module Contents

class NumpyroSamplerProblem[source]

Bases: healpix_geometry_analysis.problems.base.BaseProblem

Description of the problem for numpyro sampler

Parameters:
  • geometry (TileGeometry) – Tile geometry object

  • track_arc_length (bool, optional) – Track arc distance in degrees, by default False

track_arc_length: bool = False[source]

Track arc distance in degrees

side1()[source]

Get k & k’ numpyro samples for the first side of the tile

It is NE for “p” direction and NW for “m” direction

side2()[source]

Get k & k’ numpyro samples for the second side of the tile

It is SW for “p” direction and SE for “m” direction

_side(index: Literal[1, 2]) tuple[object, object][source]
model()[source]

Numpyro model to maximize

It would maximize the distance between the two sides of the tile. Samples are k1 & k2 or kp1 & kp2 depending on the direction. Numpyro’s factor is -distance to minimize it. Numpyro’s deterministic is used to track distance: - “distance” is for distance measure in use (see .geometry.distance) - “arc_length_degree” is for arc distance in degrees,

if track_arc_length is True