Method

NumCosmoMathSplinecurvature_lp_norm

Declaration [src]

gdouble
ncm_spline_curvature_lp_norm (
  NcmSpline* s,
  NcmSplineCurvatureType ctype,
  const gdouble p,
  const gdouble xi,
  const gdouble xf
)

Description [src]

Computes the domain-normalized $L_p$ norm of the curvature density $c(x)$ (selected by ctype) over the interval [xi, xf], $$N_p = \left(\frac{1}{x_f - x_i}\int_{x_i}^{x_f} |c(x)|^p\,\mathrm{d}x\right)^{1/p}.$$ The case p = 2 yields the root-mean-square curvature; as $p \to \infty$ the result approaches ncm_spline_curvature_max(). The spline must be prepared.

Parameters

ctype

Type: NcmSplineCurvatureType

A NcmSplineCurvatureType.

p

Type: const gdouble

The norm order $p > 0$.

xi

Type: const gdouble

The lower integration limit.

xf

Type: const gdouble

The upper integration limit.

Return value

Type: gdouble

The curvature $L_p$ norm $N_p$.