Method

NumCosmoMathMSetCatalogcalc_heidel_diag

Declaration [src]

guint
ncm_mset_catalog_calc_heidel_diag (
  NcmMSetCatalog* mcat,
  const guint ntests,
  const gdouble pvalue,
  NcmFitRunMsgs mtype
)

Description [src]

Applies the Heidelberger and Welch’s convergence diagnostic to the catalog, see ncm_stats_vec_heidel_diag() for mode details. If the number of chains in the catalog is larger than one, it considers the whole catalog otherwise it considers the ensemble means. The variable ntests control the number of divisions where the test will be applied, if it is zero the default 10 tests will be used.

Parameters

ntests

Type: const guint

Number of tests.

pvalue

Type: const gdouble

The required Schruben test p-value.

mtype

Type: NcmFitRunMsgs

NcmFitRunMsgs log level.

Return value

Type: guint

The lowest time $t_m$ where all parameters pass the test with pvalue or zero if all tests fail.