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:
NcmMSetFuncA
NcmMSetFuncof type n-n.The data is owned by the caller of the method. x_v-
Type:
NcmVectorNcmVectorof arguments offunc.The data is owned by the caller of the method. lim-
Type: An array of
doubleIntegration limits to compute the p-value.
The data is owned by the caller of the method. nodes-
Type:
guintNumber of nodes in the distribution approximations.
mtype-
Type:
NcmFitRunMsgsNcmFitRunMsgslog 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. |