Method
NumCosmoMathStatsDistKerneleval_sum0_gamma_lambda
Declaration [src]
void
ncm_stats_dist_kernel_eval_sum0_gamma_lambda (
NcmStatsDistKernel* sdk,
NcmVector* chi2,
NcmVector* weights,
NcmVector* lnnorms,
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_i,$$
where $\gamma = \ln(w_a\bar{K} (\chi^2_a) / u_a)$ and $a$ labels
is the largest term of the sum. This function shall be used when
each kernel has a different 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. lnnorms-
Type:
NcmVectorA
NcmVector.The data is owned by the caller of the method. 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.