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:
NcmModelIDA
NcmModelID. pid-
Type:
guintThe parameter id.
start-
Type:
gdoubleStarting value.
stop-
Type:
gdoubleEnding value.
nsteps-
Type:
guintStep 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. |