Module marlu::math

source · []
Expand description

Some helper mathematics.

Functions

Convert a baseline index into its constituent tile indices (where the baseline indices include auto-correlations as baselines). Baseline 0 is between tile 0 and tile 0.

Convert a cross-correlation baseline index into its constituent tile indices. Baseline 0 is not between tile 0 and tile 0; it is between tile 0 and tile 1.

From the number of baselines (which also include auto-correlations as baselines), get the number of tiles.

From the number of cross-correlation baselines, get the number of tiles.