Nonparametric impulse response estimation
Project description
impulseest() is a nonparametric impulse response estimation function
As the variance increases linearly with the finite impulse response (FIR) model order, it is important for higher order FIR models to counteract this by regularizing the estimative. In impulseest(), this is done as proposed in T. Chen et al [2012] by the Empirical Bayes method (Carlin and Louis [1996]). The prewhitening filter is applied according to A. Kessy et al [2015].
The six arguments in this function are:
- u [numpy array]: input signal (size Nx1);
- y [numpy array]: output signal (size Nx1);
- n [int]: number of impulse response estimates (default is n=100);
- RegularizationKernel [str]: regularization method ('DC','DI','TC', default is 'none');
- PreFilter [str]: prewhitening filter method ('zca', 'pca', 'cholesky', 'pca_cor', 'zca_cor', default is 'none');
- MinimizationMethod [str]: bound-constrained optimization method used to minimize the cost function ('Powell','TNC', default is 'L-BFGS-B').
The function returns a numpy array of size nx1 with all the n impulse response estimates.
Importing impulseest function
from impulseest import impulseest
Example of use of impulseest
ir_est = impulseest(u,y,n=100,RegularizationKernel='DI')
Whitening filter
The whitening filter can be used separately from impulseest main function, by importing the forementioned as follows:
from impulseest import whiten
A signal can be whitened according to the theory presented in A. Kessy et al [2015] with the function whiten. The arguments of this function are:
- x [numpy array]: discrete-time signal (size Nx1);
- method [str]: method used to create the W matrix, available options
are: 'zca', 'pca', 'cholesky', 'zca_cor', 'pca_cor'.
The whiten function returns a whitened discrete-time signal of the same size as the input array x.
Example of use of whiten
u_whitened = whiten(u)
Contributor
Luan Vinícius Fiorio - vfluan@gmail.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for impulseest-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b34715665b8828a621022befc2c8c8dd4319808901114a27f000087e487f6c65 |
|
MD5 | a0a65bbd28b42423b93e89f7ae8ad8a8 |
|
BLAKE2b-256 | 2f19b95379bd96ae9911aa312650df2fbde48c60870f959bf952476f4d770e4e |