| Top |
Functions
Properties
| GVariant * | absmag-set | Read / Write |
| guint | cat-version | Read / Write / Construct Only |
| NcmVector * | ceph-dist | Read / Write |
| NcmVector * | colour | Read / Write |
| NcmMatrix * | cov-full | Read / Write |
| NcmMatrix * | cov-mbc-mbc | Read / Write |
| gboolean | has-complete-cov | Read / Write / Construct |
| GVariant * | is-calib | Read / Write |
| NcmVector * | magnitude-b-corrected | Read / Write |
| double | magnitude-cut | Read / Write / Construct |
| NcmVector * | magnitudes | Read / Write |
| NcmVector * | sigma-thirdpar | Read / Write |
| NcmVector * | sigma-z | Read / Write |
| NcmVector * | thirdpar | Read / Write |
| GVariant * | used-in-sh0es | Read / Write |
| NcmVector * | width | Read / Write |
| NcmVector * | z-He | Read / Write |
| NcmVector * | z-cmb | Read / Write |
| NcmVector * | z-hd | Read / Write |
Object Hierarchy
GEnum ├── NcDataSNIACovError ╰── NcDataSNIACovOrder GObject ╰── NcmData ╰── NcmDataGaussCov ╰── NcDataSNIACov
Functions
nc_data_snia_cov_new ()
NcDataSNIACov * nc_data_snia_cov_new (gboolean use_norma,guint cat_version);
Creates a new empty NcDataSNIACov object. If use_norma
is
true the object will use the correct Likelihood normalization
when calculating $-2\ln(L)$.
cat_version
indicates the data format used by the likelihood.
nc_data_snia_cov_new_full ()
NcDataSNIACov * nc_data_snia_cov_new_full (const gchar *filename,gboolean use_norma);
Creates a new NcDataSNIACov object and load with the catalog
in filename
. If use_norma
is true the object will use the
correct Likelihood normalization when calculating $-2\ln(L)$
[constructor]
nc_data_snia_cov_new_from_cat_id ()
NcDataSNIACov * nc_data_snia_cov_new_from_cat_id (NcDataSNIAId id,gboolean use_norma);
Creates a new NcDataSNIACov using the catalog from id
.
[constructor]
nc_data_snia_cov_sigma_int_len ()
guint
nc_data_snia_cov_sigma_int_len (NcDataSNIACov *snia_cov);
Gets the number of different intrinsic sigma parameters in the catalog.
nc_data_snia_cov_snia_len ()
guint
nc_data_snia_cov_snia_len (NcDataSNIACov *snia_cov);
Gets the number of supernovae in the catalog.
nc_data_snia_cov_peek_z_hd ()
NcmVector *
nc_data_snia_cov_peek_z_hd (NcDataSNIACov *snia_cov);
Gets the redshift in the CMB frame corrected for peculiar velocities $z_\mathrm{hd}$ NcmVector.
nc_data_snia_cov_peek_z_cmb ()
NcmVector *
nc_data_snia_cov_peek_z_cmb (NcDataSNIACov *snia_cov);
Gets the $z_\mathrm{cmb}$ NcmVector.
nc_data_snia_cov_peek_z_he ()
NcmVector *
nc_data_snia_cov_peek_z_he (NcDataSNIACov *snia_cov);
Gets the $z_\mathrm{he}$ NcmVector.
nc_data_snia_cov_peek_sigma_z ()
NcmVector *
nc_data_snia_cov_peek_sigma_z (NcDataSNIACov *snia_cov);
Gets the $\sigma_z$ NcmVector.
nc_data_snia_cov_peek_mag ()
NcmVector *
nc_data_snia_cov_peek_mag (NcDataSNIACov *snia_cov);
Gets the magnitude NcmVector.
nc_data_snia_cov_peek_width ()
NcmVector *
nc_data_snia_cov_peek_width (NcDataSNIACov *snia_cov);
Gets the width NcmVector.
nc_data_snia_cov_peek_colour ()
NcmVector *
nc_data_snia_cov_peek_colour (NcDataSNIACov *snia_cov);
Gets the colour NcmVector.
nc_data_snia_cov_peek_thirdpar ()
NcmVector *
nc_data_snia_cov_peek_thirdpar (NcDataSNIACov *snia_cov);
Gets the thirdpar NcmVector.
nc_data_snia_cov_peek_ceph_dist ()
NcmVector *
nc_data_snia_cov_peek_ceph_dist (NcDataSNIACov *snia_cov);
Gets the Cepheid distances NcmVector.
nc_data_snia_cov_peek_abs_mag_set ()
GArray *
nc_data_snia_cov_peek_abs_mag_set (NcDataSNIACov *snia_cov);
Gets the dataset array.
nc_data_snia_cov_peek_cov_full ()
NcmMatrix *
nc_data_snia_cov_peek_cov_full (NcDataSNIACov *snia_cov);
Gets the cov_full NcmMatrix.
nc_data_snia_cov_peek_cov_packed ()
NcmVector *
nc_data_snia_cov_peek_cov_packed (NcDataSNIACov *snia_cov);
Gets the packed version of the full covariance.
nc_data_snia_cov_peek_cov_mbc_mbc ()
NcmMatrix *
nc_data_snia_cov_peek_cov_mbc_mbc (NcDataSNIACov *snia_cov);
Gets the cov_full NcmMatrix.
nc_data_snia_cov_peek_dataset ()
GArray *
nc_data_snia_cov_peek_dataset (NcDataSNIACov *snia_cov);
Gets an array containing the dataset id for each SNIa.
nc_data_snia_cov_peek_is_calib ()
GArray *
nc_data_snia_cov_peek_is_calib (NcDataSNIACov *snia_cov);
Gets an array containing whether the SNIa is a calibrator.
Returns
an GArray containing whether the SNIa is a calibrator.
[transfer none][element-type guint32]
nc_data_snia_cov_peek_used_in_sh0es ()
GArray *
nc_data_snia_cov_peek_used_in_sh0es (NcDataSNIACov *snia_cov);
Gets an array containing whether the SNIa was used in SH0ES.
Returns
an GArray containing containing whether the SNIa was used in SH0ES.
[transfer none][element-type guint32]
nc_data_snia_cov_set_mag_cut ()
void nc_data_snia_cov_set_mag_cut (NcDataSNIACov *snia_cov,const gdouble mag_cut);
Sets the absolute magnitude cut value.
nc_data_snia_cov_set_z_hd ()
void nc_data_snia_cov_set_z_hd (NcDataSNIACov *snia_cov,NcmVector *z_hd);
Sets the $z_\mathrm{hd}$ vector to z_cmb
.
nc_data_snia_cov_set_z_cmb ()
void nc_data_snia_cov_set_z_cmb (NcDataSNIACov *snia_cov,NcmVector *z_cmb);
Sets the $z_\mathrm{cmb}$ vector to z_cmb
.
nc_data_snia_cov_set_z_he ()
void nc_data_snia_cov_set_z_he (NcDataSNIACov *snia_cov,NcmVector *z_he);
Sets the $z_\mathrm{he}$ vector to z_he
.
nc_data_snia_cov_set_sigma_z ()
void nc_data_snia_cov_set_sigma_z (NcDataSNIACov *snia_cov,NcmVector *sigma_z);
Sets the $\sigma_z$ vector to sigma_z
.
nc_data_snia_cov_set_mag ()
void nc_data_snia_cov_set_mag (NcDataSNIACov *snia_cov,NcmVector *mag);
Sets the magnitude vector to mag
.
nc_data_snia_cov_set_mag_b_corr ()
void nc_data_snia_cov_set_mag_b_corr (NcDataSNIACov *snia_cov,NcmVector *mag_b_corr);
Sets the magnitude b corrected vector to mag_b_corr
.
nc_data_snia_cov_set_ceph_dist ()
void nc_data_snia_cov_set_ceph_dist (NcDataSNIACov *snia_cov,NcmVector *ceph_dist);
Sets the Cepheid distances vector to ceph_dist
.
nc_data_snia_cov_set_width ()
void nc_data_snia_cov_set_width (NcDataSNIACov *snia_cov,NcmVector *width);
Sets the width vector to width
.
nc_data_snia_cov_set_colour ()
void nc_data_snia_cov_set_colour (NcDataSNIACov *snia_cov,NcmVector *colour);
Sets the colour vector to colour
.
nc_data_snia_cov_set_thirdpar ()
void nc_data_snia_cov_set_thirdpar (NcDataSNIACov *snia_cov,NcmVector *thirdpar);
Sets the thirdpar vector to thirdpar
.
nc_data_snia_cov_set_abs_mag_set ()
void nc_data_snia_cov_set_abs_mag_set (NcDataSNIACov *snia_cov,GArray *abs_mag_set);
Sets the array containing the indexes labeling to which set each SNIa belongs.
nc_data_snia_cov_set_is_calib ()
void nc_data_snia_cov_set_is_calib (NcDataSNIACov *snia_cov,GArray *is_calib);
Sets the array containing whether the SNIa is a calibrator.
nc_data_snia_cov_set_used_in_sh0es ()
void nc_data_snia_cov_set_used_in_sh0es (NcDataSNIACov *snia_cov,GArray *used_in_sh0es);
Sets the array containing whether the SNIa was used in SH0ES.
nc_data_snia_cov_set_cov_full ()
void nc_data_snia_cov_set_cov_full (NcDataSNIACov *snia_cov,NcmMatrix *cov_full);
Sets the full covariance for the system, the size of cov_full
,
must match the system size.
nc_data_snia_cov_set_cov_mbc_mbc ()
void nc_data_snia_cov_set_cov_mbc_mbc (NcDataSNIACov *snia_cov,NcmMatrix *cov_mbc_mbc);
Sets the the mag b corr covariance to cov_mbc_mbc
.
nc_data_snia_cov_load_txt ()
void nc_data_snia_cov_load_txt (NcDataSNIACov *snia_cov,const gchar *filename);
Loads SNIa data from the key-file filename
.
nc_data_snia_cov_save ()
void nc_data_snia_cov_save (NcDataSNIACov *snia_cov,const gchar *filename,gboolean overwrite);
Saves the catalog in fits (cfitsio) format using filename
.
nc_data_snia_cov_estimate_width_colour ()
gdouble nc_data_snia_cov_estimate_width_colour (NcDataSNIACov *snia_cov,NcmMSet *mset);
Estimate the values of width and colour from the catalog using the models in mset
and fitting the width and colour as free parameters.
nc_data_snia_cov_get_estimated_mag ()
NcmVector * nc_data_snia_cov_get_estimated_mag (NcDataSNIACov *snia_cov,NcmMSet *mset);
Estimate the values of width and colour from the catalog using the models in mset
and fitting the width and colour as free parameters.
nc_data_snia_cov_get_estimated_width ()
NcmVector * nc_data_snia_cov_get_estimated_width (NcDataSNIACov *snia_cov,NcmMSet *mset);
Estimate the values of width and colour from the catalog using the models in mset
and fitting the width and colour as free parameters.
nc_data_snia_cov_get_estimated_colour ()
NcmVector * nc_data_snia_cov_get_estimated_colour (NcDataSNIACov *snia_cov,NcmMSet *mset);
Estimate the values of width and colour from the catalog using the models in mset
and fitting the width and colour as free parameters.
nc_data_snia_cov_get_fits ()
gchar * nc_data_snia_cov_get_fits (const gchar *filename,gboolean check_size);
Downloads catalog from the repository.
nc_data_snia_cov_get_catalog_id ()
NcDataSNIAId nc_data_snia_cov_get_catalog_id (gchar *id,GError **err);
Gets catalog id from the id
string.
Parameters
id |
string representation of the catalog id NcDataSNIAId |
|
err |
return location for a GError, or NULL |
nc_data_snia_cov_get_catalog ()
gchar * nc_data_snia_cov_get_catalog (gchar *id,GError **err);
Gets catalog filename from the id
.
Parameters
id |
string representation of the catalog id NcDataSNIAId |
|
err |
return location for a GError, or NULL |
nc_data_snia_cov_get_catalog_by_id ()
gchar *
nc_data_snia_cov_get_catalog_by_id (NcDataSNIAId id);
Gets catalog filename from the id
.
nc_data_snia_cov_apply_filter_sh0es_z ()
NcDataSNIACov * nc_data_snia_cov_apply_filter_sh0es_z (NcDataSNIACov *snia_cov,const gdouble z_min,const gboolean use_calib,GError **err);
Apply SH0ES+z_min filter to data.
Parameters
snia_cov |
||
z_min |
Minimum redshift |
|
use_calib |
Whether to use calibrators |
|
err |
return location for a GError, or NULL |
Types and Values
Property Details
The “absmag-set” property
“absmag-set” GVariant *
Absolute magnitude set.
Owner: NcDataSNIACov
Flags: Read / Write
Allowed values: GVariant<au>
Default value: NULL
The “cat-version” property
“cat-version” guint
Catalog version.
Owner: NcDataSNIACov
Flags: Read / Write / Construct Only
Allowed values: <= 2
Default value: 2
The “ceph-dist” property
“ceph-dist” NcmVector *
Cepheid distance.
Owner: NcDataSNIACov
Flags: Read / Write
The “cov-full” property
“cov-full” NcmMatrix *
Full covariance matrix.
Owner: NcDataSNIACov
Flags: Read / Write
The “cov-mbc-mbc” property
“cov-mbc-mbc” NcmMatrix *
Covariance matrix for mag b corr.
Owner: NcDataSNIACov
Flags: Read / Write
The “has-complete-cov” property
“has-complete-cov” gboolean
Whether the covariance matrix is complete.
Owner: NcDataSNIACov
Flags: Read / Write / Construct
Default value: FALSE
The “is-calib” property
“is-calib” GVariant *
Whether the SNIa is a calibrator.
Owner: NcDataSNIACov
Flags: Read / Write
Allowed values: GVariant<au>
Default value: NULL
The “magnitude-b-corrected” property
“magnitude-b-corrected” NcmVector *
Magnitude B corrected.
Owner: NcDataSNIACov
Flags: Read / Write
The “magnitude-cut” property
“magnitude-cut” double
Threshold where to change absolute magnitude.
Owner: NcDataSNIACov
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 10
The “magnitudes” property
“magnitudes” NcmVector *
Magnitudes.
Owner: NcDataSNIACov
Flags: Read / Write
The “sigma-thirdpar” property
“sigma-thirdpar” NcmVector *
Thirdpar standard deviation.
Owner: NcDataSNIACov
Flags: Read / Write
The “sigma-z” property
“sigma-z” NcmVector *
Redshifts standard deviation.
Owner: NcDataSNIACov
Flags: Read / Write
The “used-in-sh0es” property
“used-in-sh0es” GVariant *
Whether the SNIa was used in SH0ES.
Owner: NcDataSNIACov
Flags: Read / Write
Allowed values: GVariant<au>
Default value: NULL
The “z-cmb” property
“z-cmb” NcmVector *
Data cmb redshifts.
Owner: NcDataSNIACov
Flags: Read / Write
The “z-hd” property
“z-hd” NcmVector *
Data CMB redshifts (peculiar velocity corrected).
Owner: NcDataSNIACov
Flags: Read / Write