Virtual Method

NumCosmoMathSBesselIntegratorintegrate

Declaration [src]

void
integrate (
  NcmSBesselIntegrator* sbi,
  NcmSBesselIntegratorF F,
  gdouble a,
  gdouble b,
  gdouble k,
  NcmVector* result,
  gpointer user_data
)

Description [src]

Integrates the function F(x, k) multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for all multipoles from ell_min to ell_max. Computes: $\int_a^b K(x,k) j_\ell(kx) dx$ for each $\ell$. The results are stored in result, which must have length (ell_max - ell_min + 1).

Parameters

F

Type: NcmSBesselIntegratorF

Function to integrate.

a

Type: gdouble

Lower integration limit.

b

Type: gdouble

Upper integration limit.

k

Type: gdouble

Wave number parameter.

result

Type: NcmVector

A NcmVector to store results.

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

Type: gpointer

User data passed to F.

The argument can be NULL.
The data is owned by the caller of the method.