Method

NumCosmoMathMSetCatalogcalc_pvalue

Declaration [src]

NcmMatrix*
ncm_mset_catalog_calc_pvalue (
  NcmMSetCatalog* mcat,
  NcmMSetFunc* func,
  NcmVector* x_v,
  GArray* lim,
  guint nodes,
  NcmFitRunMsgs mtype
)

Description [src]

Calculates the p-values for the value of func for each limit in lim, integrating the probability distribution function from the left tail to lim. It stores the results in a NcmMatrix, where the first element contains the p-value with respect to the first lim, and so on.

The NcmMSetFunc func must be of dimension one.

Example: #.

Parameters

func

Type: NcmMSetFunc

A NcmMSetFunc of type n-n.

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

Type: NcmVector

NcmVector of arguments of func.

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

Type: An array of double

Integration limits to compute the p-value.

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

Type: guint

Number of nodes in the distribution approximations.

mtype

Type: NcmFitRunMsgs

NcmFitRunMsgs log level.

Return value

Type: NcmMatrix

A NcmMatrix containing the p-values for func.

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