Constructor

NumCosmoSNIADistCovnew_by_id

Declaration [src]

NcSNIADistCov*
nc_snia_dist_cov_new_by_id (
  NcDistance* dist,
  NcDataSNIAId snia_id
)

Description [src]

Creates a new SNIa model using the default values for the sample defined by snia_id.

Parameters

dist

Type: NcDistance

A NcDistance.

The data is owned by the caller of the function.
snia_id

Type: NcDataSNIAId

A NcDataSNIAId.

Return value

Type: NcSNIADistCov

A new NcSNIADistCov.

The caller of the function takes ownership of the data, and is responsible for freeing it.