Constructor

NumCosmoMathMSetCatalognew_array

Declaration [src]

NcmMSetCatalog*
ncm_mset_catalog_new_array (
  NcmMSet* mset,
  guint nadd_vals,
  guint nchains,
  gboolean weighted,
  gchar** names,
  gchar** symbols
)

Description [src]

Creates a new NcmMSetCatalog based on the NcmFit object fit. The catalog assumes that the fit object will remain with the same set of free parameters during its whole lifetime.

If nchains is larger than one, the catalog will keep track of the statistics of each chain separately.

Parameters

mset

Type: NcmMSet

A NcmMSet.

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

Type: guint

Number of additional values.

nchains

Type: guint

Number of different chains in the catalog (>=1).

weighted

Type: gboolean

Set to TRUE whenever the catalog is weighted.

names

Type: An array of gchar*

Additional values name NULL-terminated array.

The array must be NULL-terminated.
The data is owned by the caller of the function.
Each element is a NUL terminated UTF-8 string.
symbols

Type: An array of gchar*

Additional values symbol NULL-terminated array.

The array must be NULL-terminated.
The data is owned by the caller of the function.
Each element is a NUL terminated UTF-8 string.

Return value

Type: NcmMSetCatalog

A new NcmMSetCatalog.

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