Skip to content

Instantly share code, notes, and snippets.

View maka89's full-sized avatar

Aleksander maka89

View GitHub Profile
@maka89
maka89 / least_squares_fir.py
Created July 30, 2023 10:29
Least Sqquares FIR
import numpy as np
from scipy.linalg import solve_toeplitz
######
##
## Algorithm that assumes
## a fixed length impulse response (length imp_length)
## and calculates the least-squares solution of the
## convolution equation y = convolve(x, w). With optional l2-regularization.
##
## Arguments:
@maka89
maka89 / least_squares_fir.ipynb
Last active July 30, 2023 10:22
Least Squares FIR
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.