Method

NumCosmoGalaxyRedshiftBinningcompute_equal_area_photoz_bins

Declaration [src]

NcmVector*
nc_galaxy_redshift_binning_compute_equal_area_photoz_bins (
  NcGalaxyRedshiftBinning* gsdrb,
  const guint n_bins,
  const gdouble zp_max
)

Description [src]

Computes n_bins + 1 photometric-redshift edges that split the marginal $P(z_p)$ (see nc_galaxy_redshift_binning_eval_pzp()) into n_bins slices of equal integrated probability, by inverting its CDF. Suitable for equal-area source binning. Requires a prior nc_galaxy_redshift_binning_prepare(); zp_max must not exceed NcGalaxyRedshiftBinning:zp-support-max.

Parameters

n_bins

Type: const guint

The number of bins.

zp_max

Type: const gdouble

The maximum photometric redshift to bin up to.

Return value

Type: NcmVector

A NcmVector with n_bins + 1 photo-z edges.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.