This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _bsplines / _compute_optimal_gcv_parameter

function

scipy.interpolate._bsplines:_compute_optimal_gcv_parameter

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_bsplines.py:2634

Signature

def _compute_optimal_gcv_parameter(X, wE, y, w)

Summary

Returns an optimal regularization parameter from the GCV criteria [1].

Parameters

X : array, shape (5, n)

5 bands of the design matrix X stored in LAPACK banded storage.

wE : array, shape (5, n)

5 bands of the penalty matrix stored in LAPACK banded storage.

y : array, shape (n,)

Ordinates.

w : array, shape (n,)

Vector of weights.

Returns

lam : float

An optimal from the GCV criteria point of view regularization parameter.

Notes

No checks are performed.

Aliases

  • scipy.interpolate._bsplines._compute_optimal_gcv_parameter