Top | ![]() |
![]() |
![]() |
![]() |
Functions
Description
Class used to define a generic galaxy redshift probability distribution $P^g_i(z)$ using splines for each disjoint interval $i$.
Functions
nc_galaxy_redshift_spline_new ()
NcGalaxyRedshiftSpline *
nc_galaxy_redshift_spline_new (void
);
Creates a new NcGalaxyRedshiftSpline.
nc_galaxy_redshift_spline_ref ()
NcGalaxyRedshiftSpline *
nc_galaxy_redshift_spline_ref (NcGalaxyRedshiftSpline *gzs
);
Increase the reference of gzs
by one.
nc_galaxy_redshift_spline_free ()
void
nc_galaxy_redshift_spline_free (NcGalaxyRedshiftSpline *gzs
);
Decrease the reference count of gzs
by one.
nc_galaxy_redshift_spline_clear ()
void
nc_galaxy_redshift_spline_clear (NcGalaxyRedshiftSpline **gzs
);
Decrease the reference count of gzs
by one, and sets the pointer *gzs
to
NULL.
nc_galaxy_redshift_spline_set_z_best ()
void nc_galaxy_redshift_spline_set_z_best (NcGalaxyRedshiftSpline *gzs
,const gdouble z_best
);
Sets the mode of the redshift distribution z_best
.
nc_galaxy_redshift_spline_get_z_best ()
gdouble
nc_galaxy_redshift_spline_get_z_best (NcGalaxyRedshiftSpline *gzs
);
Gets $z_\mathrm{best}$, the mode of the redshift distribution.
nc_galaxy_redshift_spline_init_from_vectors ()
void nc_galaxy_redshift_spline_init_from_vectors (NcGalaxyRedshiftSpline *gzs
,NcmVector *zv
,NcmVector *Pzv
);
Initialize gzs
(cleaning any previous data) using the data from
z
and Pzv
.
Property Details
The “z-best”
property
“z-best” gdouble
Distributions mode.
Flags: Read / Write
Allowed values: >= 0
Default value: 0