Method

NumCosmoMathSplinecurvature_max

Declaration [src]

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

Description [src]

Computes the maximum absolute curvature density $|c|\infty = \max{x} |c(x)|$ over [xi, xf] (the $p \to \infty$ limit of ncm_spline_curvature_lp_norm()). The extremum is searched over the spline knots inside the interval and a refining grid; intended as a diagnostic rather than for use inside a likelihood. The spline must be prepared.

Parameters

ctype

Type: NcmSplineCurvatureType

A NcmSplineCurvatureType.

xi

Type: const gdouble

The lower limit.

xf

Type: const gdouble

The upper limit.

Return value

Type: gdouble

The maximum absolute curvature density.