Method

NumCosmoMathFitlr_test

Declaration [src]

gdouble
ncm_fit_lr_test (
  NcmFit* fit,
  NcmModelID mid,
  guint pid,
  gdouble val,
  gint dof
)

Description [src]

Computes the likelihood ratio test for the parameter pid of the model mid with the value val. The function returns the probability of the null hypothesis assuming a chi-squared distribution with dof degrees of freedom. That is, it computes the left tail of the chi-squared distribution with dof degrees of freedom.

Parameters

mid

Type: NcmModelID

A NcmModelID.

pid

Type: guint

The parameter id.

val

Type: gdouble

The parameter value.

dof

Type: gint

Degrees of freedom.

Return value

Type: gdouble

The probability of the null hypothesis.