Top | ![]() |
![]() |
![]() |
![]() |
Functions
Properties
GVariant * | absmag-set | Read / Write |
NcmVector * | colour | Read / Write |
NcmMatrix * | cov-full | Read / Write |
gboolean | has-complete-cov | Read / Write / Construct |
double | magnitude-cut | Read / Write / Construct |
NcmVector * | magnitudes | Read / Write |
NcmVector * | sigma-thirdpar | Read / Write |
NcmVector * | sigma-z | Read / Write |
NcmVector * | thirdpar | Read / Write |
NcmVector * | width | Read / Write |
NcmVector * | z-He | Read / Write |
NcmVector * | z-cmb | Read / Write |
Types and Values
Object Hierarchy
GEnum ├── NcDataSNIACovData ├── NcDataSNIACovDataV1 ╰── NcDataSNIACovOrder GFlags ╰── NcDataSNIACovDataInit GObject ╰── NcmData ╰── NcmDataGaussCov ╰── NcDataSNIACov
Functions
nc_data_snia_cov_new ()
NcmData *
nc_data_snia_cov_new (gboolean use_norma
);
Creates a new empty NcDataSNIACov object. If use_norma
is
true the object will use the correct Likelihood normalzation
when calculating $-2\ln(L)$
nc_data_snia_cov_new_full ()
NcmData * nc_data_snia_cov_new_full (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 normalzation when calculating $-2\ln(L)$
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_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_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_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_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_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_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_load_txt ()
void nc_data_snia_cov_load_txt (NcDataSNIACov *snia_cov
,const gchar *filename
);
FIXME
nc_data_snia_cov_load ()
void nc_data_snia_cov_load (NcDataSNIACov *snia_cov
,const gchar *filename
);
Loads the catalog from 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_load_cat ()
void nc_data_snia_cov_load_cat (NcDataSNIACov *snia_cov
,NcDataSNIAId id
);
FIXME
nc_data_snia_cov_get_fits ()
gchar * nc_data_snia_cov_get_fits (const gchar *filename
,gboolean check_size
);
FIXME
nc_data_snia_cov_get_catalog_by_id ()
gchar *
nc_data_snia_cov_get_catalog_by_id (NcDataSNIAId id
);
FIXME
Types and Values
enum NcDataSNIACovData
Data ordering of Version 0 (V0) data format.
enum NcDataSNIACovDataV1
Data ordering of Version 1 (V1) data format.
Members
Redshift in the CMB frame. |
||
Redshift in sun's frame. |
||
Redshift error. |
||
Magnitude. |
||
Width (strecth). |
||
Colour. |
||
Third parameter. |
||
Error on third parameter. |
||
Data set index. |
||
Covariance mag-mag. |
||
Covariance mag-width. |
||
Covariance mag-colour. |
||
Covariance width-width. |
||
Covariance width-colour. |
||
Covariance colour-colour. |
enum NcDataSNIACovDataInit
Bitwise control of data initialization.
NC_DATA_SNIA_COV_CAT_DESC_COMMENT
#define NC_DATA_SNIA_COV_CAT_DESC_COMMENT "Catalog data description"
NC_DATA_SNIA_COV_DATA_HAS_COMPLETE_COV_KEY
#define NC_DATA_SNIA_COV_DATA_HAS_COMPLETE_COV_KEY "has-complete-cov"
NC_DATA_SNIA_COV_CAT_HAS_COMPLETE_COV_COMMENT
#define NC_DATA_SNIA_COV_CAT_HAS_COMPLETE_COV_COMMENT "Whether the covariance matrix is complete"
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 “cov-full”
property
“cov-full” NcmMatrix *
Full covariance matrix.
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 “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 “z-cmb”
property
“z-cmb” NcmVector *
Data cmb redshifts.
Owner: NcDataSNIACov
Flags: Read / Write