coarsen_rows#

anri.index.coarsen_rows(H, n_rows, g)[source]#

Sum a histogram’s rows in groups of g: row k goes to k // g.

Parameters:
Returns:

  • H (jax.Array) – Flat coarse histogram

  • n_rows (int) – Its number of rows, ceil(n_rows / g)