Virtual Method
NumCosmoMathStatsDistKerneleval_sum1_gamma_lambda
Declaration [src]
void
eval_sum1_gamma_lambda (
NcmStatsDistKernel* sdk,
NcmVector* chi2,
NcmVector* weights,
gdouble lnnorm,
NcmVector* lnK,
gdouble* gamma,
gdouble* lambda
)
Description [src]
Computes the weighted sum of kernels at $\chi^2=$chi2 (the density estimator function),
$$ e^\gamma (1+\lambda) = \sum_i w_i\bar{K} (\chi^2_i) / u,$$
where $\gamma = \ln(w_a\bar{K} (\chi^2_a) / u)$ and $a$ labels
is the largest term of the sum. This function shall be used when
all the kernels have the same normalization factor.
Parameters
chi2-
Type:
NcmVectorA
NcmVector.The data is owned by the caller of the method. weights-
Type:
NcmVectorA
NcmVector.The data is owned by the caller of the method. lnnorm-
Type:
gdoubleA double.
lnK-
Type:
NcmVectorA
NcmVectorto store the logarithm of the kernels.The data is owned by the caller of the method. gamma-
Type:
gdouble*$\gamma$.
The argument will be set by the function. lambda-
Type:
gdouble*$\lambda$.
The argument will be set by the function.