Virtual Method

NumCosmoGalaxyRedshiftObsgen

Declaration [src]

gdouble
gen (
  NcGalaxyRedshiftObs* gsdre,
  NcGalaxyRedshiftObsData* data,
  const gdouble z,
  NcmRNG* rng
)

Description [src]

Samples a photometric-redshift observation given the true redshift z, storing the sampled observable(s) into data and returning the sampled point estimate.

Parameters

data

Type: NcGalaxyRedshiftObsData

A NcGalaxyRedshiftObsData whose observation inputs are set.

The data is owned by the caller of the method.
z

Type: const gdouble

The true redshift $z$.

rng

Type: NcmRNG

A NcmRNG.

The data is owned by the caller of the method.

Return value

Type: gdouble

The sampled photometric redshift.