Function

NumCosmoMathutil_log_gaussian_integral

Declaration [src]

gdouble
ncm_util_log_gaussian_integral (
  const gdouble xl,
  const gdouble xu,
  const gdouble mu,
  const gdouble sigma,
  gdouble* sign
)

Description [src]

Computes the logarithm of the integral of the Gaussian distribution with mean mu and standard deviation sigma between xl and xu. Uses the standard normal log integral. If sign is not NULL, the sign of the result (+/-1) is stored in *sign.

Parameters

xl

Type: const gdouble

The lower bound.

xu

Type: const gdouble

The upper bound.

mu

Type: const gdouble

The mean.

sigma

Type: const gdouble

The standard deviation.

sign

Type: gdouble*

Pointer to a gdouble to store the sign of the integral.

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

Return value

Type: gdouble

Log of the integral value.