{ } Raw JSON

bundles / scipy 1.18.0 / scipy / signal / _whittaker / _solve_WH_banded

function

scipy.signal._whittaker:_solve_WH_banded

source: /scipy/signal/_whittaker.py:271

Signature

def _solve_WH_banded(y, lamb, order = 2, weights = None, calc_logdet = False, warn_user = True)

Summary

Solve the WH optimization problem via the normal equations.

Extended Summary

A @ x = y A = I + lamb * P = I + lamb * D' @ D D = difference matrix of order=`order`

With weights W = diag(weights): A = W + lamb * P A @ x = W @ y

Returns

x : ndarray

The solution.

logdet : float

Logarithm of the determinant of matrix A. Returns 0 if calc_logdet=False.

Aliases

  • scipy.signal._whittaker._solve_WH_banded