Method

NumCosmoMathVectorfind_closest_index

Declaration [src]

guint
ncm_vector_find_closest_index (
  const NcmVector* cv,
  const gdouble x
)

Description [src]

Assuming that cv elements are in increasing order ($x_i < x_{i+1}$) finds the largest index $i$ such the $x_i < x$. It also assumes that $x_0 < x < x_{\mathrm{len} - 1}$.

Parameters

x

Type: const gdouble

A gdouble $x$.

Return value

Type: guint

No description available.