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).

Constructors

nc_galaxy_redshift_factor_spline_new

Creates a new NcGalaxyRedshiftFactorSpline calculator scheme.

Functions

nc_galaxy_redshift_factor_spline_clear

Decreases the reference count of gsdrs by one, and sets the pointer *gsdrs to NULL.

Instance methods

nc_galaxy_redshift_factor_spline_data_peek
No description available.

nc_galaxy_redshift_factor_spline_data_set

Sets datas per-galaxy $p(z)$ to pz.

nc_galaxy_redshift_factor_spline_free

Decreases the reference count of gsdrs by one.

nc_galaxy_redshift_factor_spline_ref

Increases the reference count of gsdrs by one.

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
No description available.

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 datas cached state from what the last nc_galaxy_redshift_factor_prepare() call resolved (default: no-op).

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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 NumCosmoGalaxyRedshiftFactorSplineClass {
  NcGalaxyRedshiftFactorClass parent_class;
  
}

No description available.

Class members
parent_class: NcGalaxyRedshiftFactorClass

No description available.