Method

NumCosmoMathFitlr_test_range

Declaration [src]

NcmMatrix*
ncm_fit_lr_test_range (
  NcmFit* fit,
  NcmModelID mid,
  guint pid,
  gdouble start,
  gdouble stop,
  guint nsteps
)

Description [src]

Computes the likelihood ratio test for the parameter pid of the model mid in the interval [start, stop] subdivided by nsteps. The function returns a NcmMatrix with the following columns: 1. Parameter value. 2. The difference in -2 times the natural logarithm of the likelihood between the full model and the model with the parameter pid fixed to the value in the first column. 3. The probability density of the difference in -2 times the natural logarithm of the likelihood between the full model and the model with the parameter pid fixed to the value in the first column, assuming a chi-squared distribution with one degree of freedom. 4. Cumulative probability (two-sides) of the difference (Column 3).

Parameters

mid

Type: NcmModelID

A NcmModelID.

pid

Type: guint

The parameter id.

start

Type: gdouble

Starting value.

stop

Type: gdouble

Ending value.

nsteps

Type: guint

Step size.

Return value

Type: NcmMatrix

A NcmMatrix with the results.

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