Method

NumCosmoMathSBesselIntegratorintegrate_gaussian

Declaration [src]

void
ncm_sbessel_integrator_integrate_gaussian (
  NcmSBesselIntegrator* sbi,
  gdouble center,
  gdouble std,
  gdouble a,
  gdouble b,
  gdouble k,
  NcmVector* result
)

Description [src]

Integrates a Gaussian function $\exp(-\frac{1}{2}(\frac{x - center}{std})^2)$ multiplied by the spherical Bessel function $j_\ell(kx)$ from a to b for all multipoles from ell_min to ell_max. The results are stored in result, which must have length (ell_max - ell_min + 1).

This is a convenience function optimized for testing against truth tables, avoiding the overhead of Python callbacks.

Parameters

center

Type: gdouble

Center of the Gaussian.

std

Type: gdouble

Standard deviation of the Gaussian.

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.