Method
NumCosmoGalaxySDObsRedshiftcompute_binned_dndz
Declaration [src]
NcmSpline*
nc_galaxy_sd_obs_redshift_compute_binned_dndz (
NcGalaxySDObsRedshift* gsdor,
NcmVector* z_array
)
Description [src]
Computes the binned true redshift distribution dndz(z) for the photometric redshift bin defined by the observation model. The photo-z bin edges are specified when creating the observation model (e.g., via nc_galaxy_sd_obs_redshift_gauss_new()).
The returned distribution is normalized such that $\int \mathrm{d}n/\mathrm{d}z \, \mathrm{d}z = 1$.
This method works for both lens-type bins (fixed photo-z edges) and source-type bins (equal-area photo-z edges). The distinction is only in how the photo-z bin edges were initially determined.
If z_array is provided, the binned dndz will be evaluated at those redshift points.
If z_array is NULL, the method will determine an appropriate set of redshift points
based on the integration limits and the desired resolution.
Parameters
z_array-
Type: An array of
doubleTrue redshift evaluation points.
The argument can be NULL.The data is owned by the caller of the method.
Return value
Type: NcmSpline
A NcmSpline containing the binned dndz(z).
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |