Class
NumCosmoGalaxyRedshiftFactorSpline
Description [src]
final class NumCosmo.GalaxyRedshiftFactorSpline : NumCosmo.GalaxyRedshiftFactor
{
/* No available fields */
}
Spline redshift calculator scheme: a per-galaxy pre-tabulated $p(z)$.
Each galaxy carries its own $p(z)$ as an NcmSpline (set via
nc_galaxy_redshift_factor_spline_data_set(), stored on the NcGalaxyWLObs
row via nc_galaxy_wl_obs_set_pz()/nc_galaxy_wl_obs_peek_pz()); the joint
density this scheme hands out is exactly that spline, evaluated (or its
natural logarithm taken) at the true redshift $z$. Unlike
NcGalaxyRedshiftFactorComposed, no NcmMSet model is involved: the
spline is per-galaxy data, not a fitted population/observable pair, so
this scheme’s density never changes except when the underlying data
(i.e. the spline itself) changes.
Sampling draws from an NcmStatsDist1dSpline built from pz (lazily, on
the first nc_galaxy_redshift_factor_update_data() call after a fresh
pz is set).
Functions
nc_galaxy_redshift_factor_spline_clear
Decreases the reference count of gsdrs by one, and sets the pointer
*gsdrs to NULL.
Instance methods
Methods inherited from NcGalaxyRedshiftFactor (11)
nc_galaxy_redshift_factor_free
Decreases the reference count of gsdr by one.
nc_galaxy_redshift_factor_gen
Generates a new galaxy redshift sample into data (draws the true redshift and
the redshift observation) using the models in mset. The data object must be
initialized beforehand.
nc_galaxy_redshift_factor_gen1
Attempts to generate a single redshift sample subject to the scheme’s
selection/limits, storing the result in data. Used for fixed-total-count
subsampling where proposals violating the constraints are discarded.
nc_galaxy_redshift_factor_get_hash
nc_galaxy_redshift_factor_get_integ_lim
Gets the effective redshift integration support for data: the range over
which the per-galaxy $p(z)$ factor is non-negligible. This is the domain used
by both the fixed-node and adaptive quadratures.
nc_galaxy_redshift_factor_integ
Builds the per-galaxy joint integrand $p(z_\mathrm{phot}, z \mid I)$ as a
function of the true redshift $z$, resolving the scheme’s models from mset.
The calculator does not integrate $z$: the returned integrand is consumed by
the orchestrator’s single $z$-integral.
nc_galaxy_redshift_factor_make_fixed_nodes
Builds the fixed integration nodes over [z_lo, z_hi] used to marginalize the
true redshift.
nc_galaxy_redshift_factor_norm
Computes the normalization $\int p(z_\mathrm{phot}, z \mid I)\, \mathrm{d}z$ over the integration support (standalone/population facet, not the per-galaxy likelihood path).
nc_galaxy_redshift_factor_prepare
Factory-level prepare: validates the scheme’s models in mset and
refreshes whatever it caches for efficient subsequent
nc_galaxy_redshift_factor_update_data() calls.
nc_galaxy_redshift_factor_ref
Increases the reference count of gsdr by one.
nc_galaxy_redshift_factor_update_data
Unconditionally refreshes data‘s cached state from what the last
nc_galaxy_redshift_factor_prepare() call resolved (default: no-op).
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.