Top |
Class used to define a generic galaxy redshift probability distribution $P^g_i(z)$ using splines for each disjoint interval $i$.
NcGalaxyRedshiftSpline *
nc_galaxy_redshift_spline_new (void
);
Creates a new NcGalaxyRedshiftSpline.
NcGalaxyRedshiftSpline *
nc_galaxy_redshift_spline_ref (NcGalaxyRedshiftSpline *gzs
);
Increase the reference of gzs
by one.
void
nc_galaxy_redshift_spline_free (NcGalaxyRedshiftSpline *gzs
);
Decrease the reference count of gzs
by one.
void
nc_galaxy_redshift_spline_clear (NcGalaxyRedshiftSpline **gzs
);
Decrease the reference count of gzs
by one, and sets the pointer *gzs
to
NULL.
void nc_galaxy_redshift_spline_set_z_best (NcGalaxyRedshiftSpline *gzs
,const gdouble z_best
);
Sets the mode of the redshift distribution z_best
.
gdouble
nc_galaxy_redshift_spline_get_z_best (NcGalaxyRedshiftSpline *gzs
);
Gets $z_\mathrm{best}$, the mode of the redshift distribution.
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
.
“dists”
property“dists” NcmObjArray *
Distribution objects.
Owner: NcGalaxyRedshiftSpline
Flags: Read / Write