Class
NumCosmoGalaxyRedshiftObs
Description [src]
abstract class NumCosmo.GalaxyRedshiftObs : NumCosmoMath.Model
{
/* No available fields */
}
Abstract model for the photometric-redshift observable model $P(\mathrm{data}|z)$.
This small NcmModel describes the conditional density of a per-galaxy
photometric-redshift observation given the true redshift $z$. The whole
observation (e.g. the point estimate $z_\mathrm{phot}$ and its scatter
$\sigma_0$) is carried per-galaxy in a NcGalaxyRedshiftObsData; the
observation’s structure is defined by the observable model itself, so the redshift
calculator that convolves this kernel with the true-redshift distribution
$P(z|I)$ stays observation-agnostic and only supplies the integration
variable $z$.
Functions
nc_galaxy_redshift_obs_clear
Decreases the reference count of gsdre by one, and sets the pointer gsdre
to NULL.
Instance methods
nc_galaxy_redshift_obs_eval
Evaluates the conditional density $P(\mathrm{data}|z)$ of the per-galaxy
observation in data given the true redshift z.
nc_galaxy_redshift_obs_gen
Samples a photometric-redshift observation given the true redshift z, storing
the sampled observable(s) into data and returning the sampled point estimate.
nc_galaxy_redshift_obs_get_true_z_lim
Returns the range of true redshift $z$ over which this galaxy’s observable conditional $P(\mathrm{obs} \mid z)$ is non-negligible (e.g. the Gaussian kernel restricted to a few sigma around the point estimate). The redshift calculator intersects this with the population support to build the effective $z$-integration limits, keeping the adaptive quadrature away from resolving a needle in a haystack. Unclamped: the caller applies the population bounds.
nc_galaxy_redshift_obs_window_mass
Computes the probability mass of the observable conditional in the window
$[\mathtt{obs_lo}, \mathtt{obs_hi}]$ at fixed true redshift z, i.e.
$\int_{\mathtt{obs_lo}}^{\mathtt{obs_hi}} P(\mathrm{obs} \mid z)\,
\mathrm{d}\,\mathrm{obs}$. This is the selection/normalization factor used by
the redshift calculator to condition on a photometric selection window and by
the binned $\mathrm{d}n/\mathrm{d}z$; it depends only on z and the per-galaxy
scatter, not on the sampled point estimate.
Properties
Properties inherited from NcmModel (9)
NumCosmoMath.Model:implementation
NumCosmoMath.Model:name
NumCosmoMath.Model:nick
NumCosmoMath.Model:params-types
NumCosmoMath.Model:reparam
NumCosmoMath.Model:scalar-params-len
NumCosmoMath.Model:sparam-array
NumCosmoMath.Model:submodel-array
NumCosmoMath.Model:vector-params-len
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct NumCosmoGalaxyRedshiftObsClass {
void (* data_init) (
NcGalaxyRedshiftObs* gsdre,
NcGalaxyRedshiftObsData* data
);
gdouble (* eval) (
NcGalaxyRedshiftObs* gsdre,
NcGalaxyRedshiftObsData* data,
const gdouble z
);
gdouble (* gen) (
NcGalaxyRedshiftObs* gsdre,
NcGalaxyRedshiftObsData* data,
const gdouble z,
NcmRNG* rng
);
gdouble (* window_mass) (
NcGalaxyRedshiftObs* gsdre,
NcGalaxyRedshiftObsData* data,
const gdouble z,
const gdouble obs_lo,
const gdouble obs_hi
);
void (* get_true_z_lim) (
NcGalaxyRedshiftObs* gsdre,
NcGalaxyRedshiftObsData* data,
gdouble* z_min,
gdouble* z_max
);
}
No description available.
Class members
data_init: void (* data_init) ( NcGalaxyRedshiftObs* gsdre, NcGalaxyRedshiftObsData* data )No description available.
eval: gdouble (* eval) ( NcGalaxyRedshiftObs* gsdre, NcGalaxyRedshiftObsData* data, const gdouble z )No description available.
gen: gdouble (* gen) ( NcGalaxyRedshiftObs* gsdre, NcGalaxyRedshiftObsData* data, const gdouble z, NcmRNG* rng )No description available.
window_mass: gdouble (* window_mass) ( NcGalaxyRedshiftObs* gsdre, NcGalaxyRedshiftObsData* data, const gdouble z, const gdouble obs_lo, const gdouble obs_hi )No description available.
get_true_z_lim: void (* get_true_z_lim) ( NcGalaxyRedshiftObs* gsdre, NcGalaxyRedshiftObsData* data, gdouble* z_min, gdouble* z_max )No description available.
Virtual methods
NumCosmo.GalaxyRedshiftObsClass.eval
Evaluates the conditional density $P(\mathrm{data}|z)$ of the per-galaxy
observation in data given the true redshift z.
NumCosmo.GalaxyRedshiftObsClass.gen
Samples a photometric-redshift observation given the true redshift z, storing
the sampled observable(s) into data and returning the sampled point estimate.
NumCosmo.GalaxyRedshiftObsClass.get_true_z_lim
Returns the range of true redshift $z$ over which this galaxy’s observable conditional $P(\mathrm{obs} \mid z)$ is non-negligible (e.g. the Gaussian kernel restricted to a few sigma around the point estimate). The redshift calculator intersects this with the population support to build the effective $z$-integration limits, keeping the adaptive quadrature away from resolving a needle in a haystack. Unclamped: the caller applies the population bounds.
NumCosmo.GalaxyRedshiftObsClass.window_mass
Computes the probability mass of the observable conditional in the window
$[\mathtt{obs_lo}, \mathtt{obs_hi}]$ at fixed true redshift z, i.e.
$\int_{\mathtt{obs_lo}}^{\mathtt{obs_hi}} P(\mathrm{obs} \mid z)\,
\mathrm{d}\,\mathrm{obs}$. This is the selection/normalization factor used by
the redshift calculator to condition on a photometric selection window and by
the binned $\mathrm{d}n/\mathrm{d}z$; it depends only on z and the per-galaxy
scatter, not on the sampled point estimate.