Method

NumCosmoMathStatsDistKerneleval_sum1_gamma_lambda

Declaration [src]

void
ncm_stats_dist_kernel_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: NcmVector

A NcmVector.

The data is owned by the caller of the method.
weights

Type: NcmVector

A NcmVector.

The data is owned by the caller of the method.
lnnorm

Type: gdouble

A double.

lnK

Type: NcmVector

A NcmVector to 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.