Class
NumCosmoGalaxyPositionFactor
Description [src]
abstract class NumCosmo.GalaxyPositionFactor : GObject.Object
{
/* No available fields */
}
Abstract calculator for the galaxy sky-position distribution.
A calculator (a plain GObject, NOT an NcmModel and NOT held in an NcmMSet)
that produces the per-galaxy position density $p(\mathrm{ra}, \mathrm{dec}
\mid I)$. The galaxy position is observed directly — there is no
true-vs-observed scatter split and (for the flat scheme) no fitted
parameters — so, unlike NcGalaxyRedshiftFactor, the position collapses to a
single distribution with no companion NcmModel: the scheme carries its own
survey geometry as configuration.
Concrete schemes live as subclasses following the NcPowspecML pattern (the
abstract base owns the shared machinery once; each scheme owns its observed
fragment, engine and sampler). The only scheme today is the flat scheme
(NcGalaxyPositionFactorFlat, uniform over a sky footprint); a future
clustered scheme would gain fitted parameters and read a cosmology/halo model
from mset, which is why mset is threaded through the vtable even though the
flat scheme ignores it.
Functions
nc_galaxy_position_factor_clear
Decreases the reference count of gspf by one, and sets the pointer *gspf to
NULL.
Instance methods
nc_galaxy_position_factor_gen
Generates a new galaxy position sample into data. The data object must be
initialized beforehand.
nc_galaxy_position_factor_integ
Builds the per-galaxy position density $p(\mathrm{ra}, \mathrm{dec} \mid I)$ as a callback evaluated at the galaxy’s stored position. The position is not integrated (it is observed directly); the callback is a fixed-position evaluation.
nc_galaxy_position_factor_prepare
Factory-level prepare: validates the scheme’s models in mset and
refreshes whatever it caches for efficient subsequent
nc_galaxy_position_factor_update_data() calls. Cheap/no-op for the flat
scheme, which has no models to resolve.
nc_galaxy_position_factor_update_data
Unconditionally refreshes data‘s cached state from what the last
nc_galaxy_position_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.
Class structure
struct NumCosmoGalaxyPositionFactorClass {
void (* data_init) (
NcGalaxyPositionFactor* gspf,
NcmMSet* mset,
NcGalaxyPositionFactorData* data
);
void (* gen) (
NcGalaxyPositionFactor* gspf,
NcmMSet* mset,
NcGalaxyPositionFactorData* data,
NcmRNG* rng
);
void (* prepare) (
NcGalaxyPositionFactor* gspf,
NcmMSet* mset
);
NcGalaxyPositionFactorIntegrand* (* integ) (
NcGalaxyPositionFactor* gspf,
NcmMSet* mset,
gboolean use_lnp
);
guint64 (* get_hash) (
NcGalaxyPositionFactor* gspf
);
void (* update_data) (
NcGalaxyPositionFactor* gspf,
NcGalaxyPositionFactorData* data
);
}
No description available.
Class members
data_init: void (* data_init) ( NcGalaxyPositionFactor* gspf, NcmMSet* mset, NcGalaxyPositionFactorData* data )No description available.
gen: void (* gen) ( NcGalaxyPositionFactor* gspf, NcmMSet* mset, NcGalaxyPositionFactorData* data, NcmRNG* rng )No description available.
prepare: void (* prepare) ( NcGalaxyPositionFactor* gspf, NcmMSet* mset )No description available.
integ: NcGalaxyPositionFactorIntegrand* (* integ) ( NcGalaxyPositionFactor* gspf, NcmMSet* mset, gboolean use_lnp )No description available.
get_hash: guint64 (* get_hash) ( NcGalaxyPositionFactor* gspf )No description available.
update_data: void (* update_data) ( NcGalaxyPositionFactor* gspf, NcGalaxyPositionFactorData* data )No description available.
Virtual methods
NumCosmo.GalaxyPositionFactorClass.gen
Generates a new galaxy position sample into data. The data object must be
initialized beforehand.
NumCosmo.GalaxyPositionFactorClass.integ
Builds the per-galaxy position density $p(\mathrm{ra}, \mathrm{dec} \mid I)$ as a callback evaluated at the galaxy’s stored position. The position is not integrated (it is observed directly); the callback is a fixed-position evaluation.
NumCosmo.GalaxyPositionFactorClass.prepare
Factory-level prepare: validates the scheme’s models in mset and
refreshes whatever it caches for efficient subsequent
nc_galaxy_position_factor_update_data() calls. Cheap/no-op for the flat
scheme, which has no models to resolve.
NumCosmo.GalaxyPositionFactorClass.update_data
Unconditionally refreshes data‘s cached state from what the last
nc_galaxy_position_factor_prepare() call resolved (default: no-op).