Top | ![]() |
![]() |
![]() |
![]() |
Functions
NcSNIADistCov * | nc_snia_dist_cov_new () |
NcSNIADistCov * | nc_snia_dist_cov_ref () |
void | nc_snia_dist_cov_free () |
void | nc_snia_dist_cov_clear () |
void | nc_snia_dist_cov_set_empty_fac () |
void | nc_snia_dist_cov_set_dist () |
void | nc_snia_dist_cov_prepare () |
void | nc_snia_dist_cov_prepare_if_needed () |
void | nc_snia_dist_cov_calc () |
void | nc_snia_dist_cov_mean () |
gdouble | nc_snia_dist_cov_mag () |
void | nc_snia_dist_cov_mag_to_width_colour () |
gdouble | nc_snia_dist_cov_extra_var () |
void | nc_snia_dist_cov_alpha_beta () |
Properties
gdouble | M1 | Read / Write |
gboolean | M1-fit | Read / Write |
gdouble | M2 | Read / Write |
gboolean | M2-fit | Read / Write |
gdouble | alpha | Read / Write |
gboolean | alpha-fit | Read / Write |
gdouble | beta | Read / Write |
gboolean | beta-fit | Read / Write |
NcDistance * | dist | Read / Write / Construct |
gboolean | empty-fac | Read / Write / Construct |
NcmVector * | lnsigma-int | Read / Write |
GVariant * | lnsigma-int-fit | Read / Write |
guint | lnsigma-int-length | Read / Write / Construct Only |
gdouble | lnsigma-lens | Read / Write |
gboolean | lnsigma-lens-fit | Read / Write |
gdouble | lnsigma-pecz | Read / Write |
gboolean | lnsigma-pecz-fit | Read / Write |
NcmVector * | mu | Read / Write |
GVariant * | mu-fit | Read / Write |
guint | mu-length | Read / Write / Construct Only |
Types and Values
enum | NcSNIADistCovSParams |
enum | NcSNIADistCovVParams |
#define | NC_SNIA_DIST_COV_DEFAULT_ALPHA |
#define | NC_SNIA_DIST_COV_DEFAULT_BETA |
#define | NC_SNIA_DIST_COV_DEFAULT_M1 |
#define | NC_SNIA_DIST_COV_DEFAULT_M2 |
#define | NC_SNIA_DIST_COV_DEFAULT_LNSIGMA_PECZ |
#define | NC_SNIA_DIST_COV_DEFAULT_LNSIGMA_LENS |
#define | NC_SNIA_DIST_COV_DEFAULT_PARAMS_ABSTOL |
#define | NC_SNIA_DIST_COV_LNSIGMA_INT_DEFAULT_LEN |
#define | NC_SNIA_DIST_COV_DEFAULT_LNSIGMA_INT |
#define | NC_SNIA_DIST_COV_MU_DEFAULT_LEN |
#define | NC_SNIA_DIST_COV_DEFAULT_MU |
Object Hierarchy
GEnum ├── NcSNIADistCovSParams ╰── NcSNIADistCovVParams GObject ╰── NcmModel ╰── NcSNIADistCov
Description
This object implements the calculation necessary to make a statistical analysis using data from Conley et al. (2011) and Sullivan et al. (2011).
Is also supports Betoule et al. (2014).
Functions
nc_snia_dist_cov_new ()
NcSNIADistCov * nc_snia_dist_cov_new (NcDistance *dist
,guint sigma_int_len
);
FIXME
nc_snia_dist_cov_set_empty_fac ()
void nc_snia_dist_cov_set_empty_fac (NcSNIADistCov *dcov
,gboolean enable
);
FIXME
nc_snia_dist_cov_set_dist ()
void nc_snia_dist_cov_set_dist (NcSNIADistCov *dcov
,NcDistance *dist
);
Sets the NcDistance object to dist
.
nc_snia_dist_cov_prepare ()
void nc_snia_dist_cov_prepare (NcSNIADistCov *dcov
,NcmMSet *mset
);
FIXME
nc_snia_dist_cov_prepare_if_needed ()
void nc_snia_dist_cov_prepare_if_needed (NcSNIADistCov *dcov
,NcmMSet *mset
);
FIXME
nc_snia_dist_cov_calc ()
void nc_snia_dist_cov_calc (NcSNIADistCov *dcov
,NcDataSNIACov *snia_cov
,NcmMatrix *cov
);
FIXME
nc_snia_dist_cov_mean ()
void nc_snia_dist_cov_mean (NcSNIADistCov *dcov
,NcHICosmo *cosmo
,NcDataSNIACov *snia_cov
,NcmVector *y
);
FIXME
nc_snia_dist_cov_mag ()
gdouble nc_snia_dist_cov_mag (NcSNIADistCov *dcov
,NcHICosmo *cosmo
,NcDataSNIACov *snia_cov
,guint i
,gdouble width_th
,gdouble colour_th
);
Computes the apparent magniture from model, width and colour.
nc_snia_dist_cov_mag_to_width_colour ()
void nc_snia_dist_cov_mag_to_width_colour (NcSNIADistCov *dcov
,NcHICosmo *cosmo
,NcDataSNIACov *snia_cov
,NcmVector *obs
,NcmMatrix *X
,gboolean colmajor
);
Computes effective observed vector obs
, the first snia_cov->mu_len
params
are set to the width colour combination using the values of the distance
modulus from the model cosmo
and the SNIa model dcov
, i.e.,
$-\alpha{}w_i+\beta{}c_i = m_{\mathrm{B},i} - \mu_{\mathrm{th},i}-\alpha-\mathcal{M}_i$.
The next 2 * snia_cov->mu_len
are the observed widths and then the observed colours.
The vector obs
must be of size 3 * snia_cov->mu_len
.
nc_snia_dist_cov_extra_var ()
gdouble nc_snia_dist_cov_extra_var (NcSNIADistCov *dcov
,NcDataSNIACov *snia_cov
,guint i
);
Computes the total variance of the i
-th distance, not related to the
magnitute, width or colour errors.
nc_snia_dist_cov_alpha_beta ()
void nc_snia_dist_cov_alpha_beta (NcSNIADistCov *dcov
,gdouble *alpha
,gdouble *beta
);
FIXME
Types and Values
NC_SNIA_DIST_COV_DEFAULT_LNSIGMA_PECZ
#define NC_SNIA_DIST_COV_DEFAULT_LNSIGMA_PECZ (log (150.0e3 / ncm_c_c ()))
Property Details
The “M1”
property
“M1” gdouble
\mathcal{M}_1.
Flags: Read / Write
Allowed values: [-30,-10]
Default value: -19.1686
The “M2”
property
“M2” gdouble
\mathcal{M}_2.
Flags: Read / Write
Allowed values: [-30,-10]
Default value: -19.1856
The “alpha”
property
“alpha” gdouble
\alpha.
Flags: Read / Write
Allowed values: [0,5]
Default value: 1.45
The “beta”
property
“beta” gdouble
\beta.
Flags: Read / Write
Allowed values: [0,5]
Default value: 3.16
The “empty-fac”
property
“empty-fac” gboolean
Empty universe approximation factor.
Flags: Read / Write / Construct
Default value: TRUE
The “lnsigma-int”
property
“lnsigma-int” NcmVector *
\ln(\sigma_{\mathrm{int}}).
Flags: Read / Write
The “lnsigma-int-fit”
property
“lnsigma-int-fit” GVariant *
\ln(\sigma_{\mathrm{int}}):fit.
Flags: Read / Write
Allowed values: GVariant<a*>
Default value: NULL
The “lnsigma-int-length”
property
“lnsigma-int-length” guint
\ln(\sigma_{\mathrm{int}}):length.
Flags: Read / Write / Construct Only
Default value: 4
The “lnsigma-lens”
property
“lnsigma-lens” gdouble
\ln(\sigma_{\mathrm{lens}}).
Flags: Read / Write
Allowed values: [-23.0259,11.5129]
Default value: -2.90042
The “lnsigma-lens-fit”
property
“lnsigma-lens-fit” gboolean
\ln(\sigma_{\mathrm{lens}}):fit.
Flags: Read / Write
Default value: FALSE
The “lnsigma-pecz”
property
“lnsigma-pecz” gdouble
\ln(\sigma_{\mathrm{pecz}}).
Flags: Read / Write
Allowed values: [-23.0259,11.5129]
Default value: -7.60021
The “lnsigma-pecz-fit”
property
“lnsigma-pecz-fit” gboolean
\ln(\sigma_{\mathrm{pecz}}):fit.
Flags: Read / Write
Default value: FALSE
The “mu-fit”
property
“mu-fit” GVariant *
\mu:fit.
Flags: Read / Write
Allowed values: GVariant<a*>
Default value: NULL
The “mu-length”
property
“mu-length” guint
\mu:length.
Flags: Read / Write / Construct Only
Default value: 0