Top | ![]() |
![]() |
![]() |
![]() |
Functions
Object Hierarchy
GObject ╰── NcGalaxyRedshift ├── NcGalaxyRedshiftGauss ├── NcGalaxyRedshiftSpec ╰── NcGalaxyRedshiftSpline
Description
Abstract class used to define a generic galaxy redshift probability distribution $P_g(z)$.
Functions
nc_galaxy_redshift_ref ()
NcGalaxyRedshift *
nc_galaxy_redshift_ref (NcGalaxyRedshift *gz
);
Increase the reference of gz
by one.
nc_galaxy_redshift_free ()
void
nc_galaxy_redshift_free (NcGalaxyRedshift *gz
);
Decrease the reference count of gz
by one.
nc_galaxy_redshift_clear ()
void
nc_galaxy_redshift_clear (NcGalaxyRedshift **gz
);
Decrease the reference count of gz
by one, and sets the pointer *gz
to
NULL.
nc_galaxy_redshift_has_dist ()
gboolean
nc_galaxy_redshift_has_dist (NcGalaxyRedshift *gz
);
[virtual has_dist]
nc_galaxy_redshift_nintervals ()
guint
nc_galaxy_redshift_nintervals (NcGalaxyRedshift *gz
);
[virtual nintervals]
nc_galaxy_redshift_interval_weight ()
gdouble nc_galaxy_redshift_interval_weight (NcGalaxyRedshift *gz
,const guint di
);
[virtual interval_weight]
nc_galaxy_redshift_pdf_limits ()
void nc_galaxy_redshift_pdf_limits (NcGalaxyRedshift *gz
,const guint di
,gdouble *zmin
,gdouble *zmax
);
This method provides the limits of the redshift probability density $p_i(z)$.
[virtual pdf_limits]
nc_galaxy_redshift_pdf ()
gdouble nc_galaxy_redshift_pdf (NcGalaxyRedshift *gz
,const guint di
,const gdouble z
);
[virtual pdf]
nc_galaxy_redshift_gen ()
gdouble nc_galaxy_redshift_gen (NcGalaxyRedshift *gz
,NcmRNG *rng
);
Generates a redshift from the distribution using rng
.
[virtual gen]
nc_galaxy_redshift_quantile ()
gdouble nc_galaxy_redshift_quantile (NcGalaxyRedshift *gz
,const gdouble q
);
Computes the $q$ quantile.
[virtual quantile]
nc_galaxy_redshift_compute_mean_m2lnf ()
gdouble nc_galaxy_redshift_compute_mean_m2lnf (NcGalaxyRedshift *gz
,guint gal_i
,NcGalaxyRedshiftF m2lnf
,gpointer userdata
);
Computes the mean of a functions through $\int\mathrm{d}z P(z)f(z)$.
[virtual compute_mean_m2lnf]