Method

NumCosmoSNIADistCovmag

Declaration [src]

gdouble
nc_snia_dist_cov_mag (
  NcSNIADistCov* dcov,
  NcHICosmo* cosmo,
  NcDataSNIACov* snia_cov,
  guint i,
  gdouble width_th,
  gdouble colour_th
)

Description [src]

Computes the apparent magnitude from model, width and colour.

Parameters

cosmo

Type: NcHICosmo

A NcHICosmo.

The data is owned by the caller of the method.
snia_cov

Type: NcDataSNIACov

A NcDataSNIACov.

The data is owned by the caller of the method.
i

Type: guint

The distance index.

width_th

Type: gdouble

The true width.

colour_th

Type: gdouble

The true colour.

Return value

Type: gdouble

The apparent magnitude.