yaw.catalogs.scipy.utils.merge_histogram_patches#

yaw.catalogs.scipy.utils.merge_histogram_patches(hist_counts: NDArray[np.float64], z_bins: NDArray[np.float64], sampling_config: ResamplingConfig | None = None) HistData[source]#

Merge redshift histogram from patches into a histogram data container.

Parameters:
  • hist_counts (NDArray[np.float64]) – A two-dimensional array with histogram counts with shape (n_patches, n_bins).

  • z_bins (NDArray[np.float64]) – The bin edges including the right-most edge.

  • sampling_config – (yaw.config.ResamplingConfig, optional): Specify the resampling method and its configuration.

Returns:

Histogram data with samples and covaraiance estimate.

Return type:

yaw.redshifts.HistData