Method

NumCosmoDistancedmodulus_array

Declaration [src]

GArray*
nc_distance_dmodulus_array (
  NcDistance* dist,
  NcHICosmo* cosmo,
  const GArray* z
)

Description [src]

Compute the distance modulus $\delta\mu(z)$ for each redshift in z.

Parameters

cosmo

Type: NcHICosmo

A NcHICosmo.

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

Type: An array of double

A vector of redshifts.

The data is owned by the caller of the method.

Return value

Type: An array of double

A vector with the distance modulus.

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