Method
NumCosmoSNIADistCovmag_to_width_colour
Declaration [src]
void
nc_snia_dist_cov_mag_to_width_colour (
NcSNIADistCov* dcov,
NcHICosmo* cosmo,
NcDataSNIACov* snia_cov,
NcmVector* obs,
NcmMatrix* X,
gboolean colmajor
)
Description [src]
Computes effective observed vector obs, the first snia_cov->mu_len parameters
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.
Parameters
cosmo-
Type:
NcHICosmoA
NcHICosmo.The data is owned by the caller of the method. snia_cov-
Type:
NcDataSNIACovA
NcDataSNIACov.The data is owned by the caller of the method. obs-
Type:
NcmVectorA
NcmVector.The data is owned by the caller of the method. X-
Type:
NcmMatrixA
NcmMatrix.The data is owned by the caller of the method. colmajor-
Type:
gbooleanWhether to fill the matrices in a col-major format.