Top |
GVariant * | absmag-set | Read / Write |
guint | cat-version | Read / Write / Construct Only |
char * | catalog-file | 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 |
#define | NC_TYPE_DATA_SNIA_COV |
#define | NC_DATA_SNIA_COV_ERROR |
enum | NcDataSNIACovOrder |
enum | NcDataSNIACovError |
NcDataSNIACov |
GEnum ├── NcDataSNIACovError ╰── NcDataSNIACovOrder GObject ╰── NcmData ╰── NcmDataGaussCov ╰── NcDataSNIACov
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.
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]
NcDataSNIACov * nc_data_snia_cov_new_from_cat_id (NcDataSNIAId id
,gboolean use_norma
);
Creates a new NcDataSNIACov using the catalog from id
.
[constructor]
guint
nc_data_snia_cov_sigma_int_len (NcDataSNIACov *snia_cov
);
Gets the number of different intrinsic sigma parameters in the catalog.
guint
nc_data_snia_cov_snia_len (NcDataSNIACov *snia_cov
);
Gets the number of supernovae in the catalog.
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.
NcmVector *
nc_data_snia_cov_peek_z_cmb (NcDataSNIACov *snia_cov
);
Gets the $z_\mathrm{cmb}$ NcmVector.
NcmVector *
nc_data_snia_cov_peek_z_he (NcDataSNIACov *snia_cov
);
Gets the $z_\mathrm{he}$ NcmVector.
NcmVector *
nc_data_snia_cov_peek_sigma_z (NcDataSNIACov *snia_cov
);
Gets the $\sigma_z$ NcmVector.
NcmVector *
nc_data_snia_cov_peek_mag (NcDataSNIACov *snia_cov
);
Gets the magnitude NcmVector.
NcmVector *
nc_data_snia_cov_peek_width (NcDataSNIACov *snia_cov
);
Gets the width NcmVector.
NcmVector *
nc_data_snia_cov_peek_colour (NcDataSNIACov *snia_cov
);
Gets the colour NcmVector.
NcmVector *
nc_data_snia_cov_peek_thirdpar (NcDataSNIACov *snia_cov
);
Gets the thirdpar NcmVector.
NcmVector *
nc_data_snia_cov_peek_ceph_dist (NcDataSNIACov *snia_cov
);
Gets the Cepheid distances NcmVector.
GArray *
nc_data_snia_cov_peek_abs_mag_set (NcDataSNIACov *snia_cov
);
Gets the dataset array.
NcmMatrix *
nc_data_snia_cov_peek_cov_full (NcDataSNIACov *snia_cov
);
Gets the cov_full NcmMatrix.
NcmVector *
nc_data_snia_cov_peek_cov_packed (NcDataSNIACov *snia_cov
);
Gets the packed version of the full covariance.
NcmMatrix *
nc_data_snia_cov_peek_cov_mbc_mbc (NcDataSNIACov *snia_cov
);
Gets the cov_full NcmMatrix.
GArray *
nc_data_snia_cov_peek_dataset (NcDataSNIACov *snia_cov
);
Gets an array containing the dataset id for each SNIa.
GArray *
nc_data_snia_cov_peek_is_calib (NcDataSNIACov *snia_cov
);
Gets an array containing whether the SNIa is a calibrator.
GArray *
nc_data_snia_cov_peek_used_in_sh0es (NcDataSNIACov *snia_cov
);
Gets an array containing whether the SNIa was used in SH0ES.
void nc_data_snia_cov_set_mag_cut (NcDataSNIACov *snia_cov
,const gdouble mag_cut
);
Sets the absolute magnitude cut value.
void nc_data_snia_cov_set_z_hd (NcDataSNIACov *snia_cov
,NcmVector *z_hd
);
Sets the $z_\mathrm{hd}$ vector to 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
.
void nc_data_snia_cov_set_z_he (NcDataSNIACov *snia_cov
,NcmVector *z_he
);
Sets the $z_\mathrm{he}$ vector to z_he
.
void nc_data_snia_cov_set_sigma_z (NcDataSNIACov *snia_cov
,NcmVector *sigma_z
);
Sets the $\sigma_z$ vector to sigma_z
.
void nc_data_snia_cov_set_mag (NcDataSNIACov *snia_cov
,NcmVector *mag
);
Sets the magnitude vector to mag
.
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
.
void nc_data_snia_cov_set_ceph_dist (NcDataSNIACov *snia_cov
,NcmVector *ceph_dist
);
Sets the Cepheid distances vector to ceph_dist
.
void nc_data_snia_cov_set_width (NcDataSNIACov *snia_cov
,NcmVector *width
);
Sets the width vector to width
.
void nc_data_snia_cov_set_colour (NcDataSNIACov *snia_cov
,NcmVector *colour
);
Sets the colour vector to colour
.
void nc_data_snia_cov_set_thirdpar (NcDataSNIACov *snia_cov
,NcmVector *thirdpar
);
Sets the thirdpar vector to thirdpar
.
void nc_data_snia_cov_set_sigma_thirdpar (NcDataSNIACov *snia_cov
,NcmVector *sigma_thirdpar
);
Sets the sigma thirdpar vector to sigma_thirdpar
.
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.
void nc_data_snia_cov_set_is_calib (NcDataSNIACov *snia_cov
,GArray *is_calib
);
Sets the array containing whether the SNIa is a calibrator.
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.
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.
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
.
void nc_data_snia_cov_load_txt (NcDataSNIACov *snia_cov
,const gchar *filename
);
Loads SNIa data from the key-file filename
.
void nc_data_snia_cov_save (NcDataSNIACov *snia_cov
,const gchar *filename
,gboolean overwrite
);
Saves the catalog in fits (cfitsio) format using filename
.
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.
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.
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.
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.
gchar * nc_data_snia_cov_get_fits (const gchar *filename
,gboolean check_size
);
Downloads catalog from the repository.
NcDataSNIAId nc_data_snia_cov_get_catalog_id (gchar *id
,GError **err
);
Gets catalog id from the id
string.
id |
string representation of the catalog id NcDataSNIAId |
|
err |
return location for a GError, or NULL |
gchar * nc_data_snia_cov_get_catalog (gchar *id
,GError **err
);
Gets catalog filename from the id
.
id |
string representation of the catalog id NcDataSNIAId |
|
err |
return location for a GError, or NULL |
gchar *
nc_data_snia_cov_get_catalog_by_id (NcDataSNIAId id
);
Gets catalog filename from the id
.
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.
“absmag-set”
property “absmag-set” GVariant *
Absolute magnitude set.
Owner: NcDataSNIACov
Flags: Read / Write
Allowed values: GVariant<au>
Default value: NULL
“cat-version”
property “cat-version” guint
Catalog version.
Owner: NcDataSNIACov
Flags: Read / Write / Construct Only
Allowed values: <= 2
Default value: 2
“catalog-file”
property “catalog-file” char *
Catalog file.
Owner: NcDataSNIACov
Flags: Read / Write / Construct Only
Default value: NULL
“ceph-dist”
property“ceph-dist” NcmVector *
Cepheid distance.
Owner: NcDataSNIACov
Flags: Read / Write
“cov-full”
property“cov-full” NcmMatrix *
Full covariance matrix.
Owner: NcDataSNIACov
Flags: Read / Write
“cov-mbc-mbc”
property“cov-mbc-mbc” NcmMatrix *
Covariance matrix for mag b corr.
Owner: NcDataSNIACov
Flags: Read / Write
“has-complete-cov”
property “has-complete-cov” gboolean
Whether the covariance matrix is complete.
Owner: NcDataSNIACov
Flags: Read / Write / Construct
Default value: FALSE
“is-calib”
property “is-calib” GVariant *
Whether the SNIa is a calibrator.
Owner: NcDataSNIACov
Flags: Read / Write
Allowed values: GVariant<au>
Default value: NULL
“magnitude-b-corrected”
property“magnitude-b-corrected” NcmVector *
Magnitude B corrected.
Owner: NcDataSNIACov
Flags: Read / Write
“magnitude-cut”
property “magnitude-cut” double
Threshold where to change absolute magnitude.
Owner: NcDataSNIACov
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 10
“magnitudes”
property“magnitudes” NcmVector *
Magnitudes.
Owner: NcDataSNIACov
Flags: Read / Write
“sigma-thirdpar”
property“sigma-thirdpar” NcmVector *
Thirdpar standard deviation.
Owner: NcDataSNIACov
Flags: Read / Write
“sigma-z”
property“sigma-z” NcmVector *
Redshifts standard deviation.
Owner: NcDataSNIACov
Flags: Read / Write
“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
“z-cmb”
property“z-cmb” NcmVector *
Data cmb redshifts.
Owner: NcDataSNIACov
Flags: Read / Write
“z-hd”
property“z-hd” NcmVector *
Data CMB redshifts (peculiar velocity corrected).
Owner: NcDataSNIACov
Flags: Read / Write